Re: [Mesa-dev] [PATCH] mesa: remove samplerobj inlined comparison

2015-08-07 Thread Timothy Arceri
I noticed this when looking into Matts locking changes. Other objects are like ly also doing this check more times then required. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH] mesa: remove samplerobj inlined comparison

2015-08-07 Thread Timothy Arceri
In all cases the comparison is either alreay done, or in the case of deletes comparing against NULL. gcc wasn't optimising it away either --- src/mesa/main/samplerobj.c | 13 ++--- src/mesa/main/samplerobj.h | 11 +-- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a