Re: [Mesa-dev] [PATCH 2/3] i965: Keep track of the per-thread scratch allocation in brw_stage_state.

2016-06-12 Thread Francisco Jerez
Kenneth Graunke writes: > On Saturday, June 11, 2016 2:50:27 PM PDT Francisco Jerez wrote: >> diff --git a/src/mesa/drivers/dri/i965/brw_program.c >> b/src/mesa/drivers/dri/i965/brw_program.c >> index 792f81b..9f822d2 100644 >> --- a/src/mesa/drivers/dri/i965/brw_program.c >> +++ b/src/mesa/driv

Re: [Mesa-dev] [Mesa-stable] [PATCH] i965: Don't leak scratch BOs for TCS/TES.

2016-06-12 Thread Chris Forbes
Reviewed-by: Chris Forbes On Mon, Jun 13, 2016 at 12:03 PM, Kenneth Graunke wrote: > These need to be freed too. > > Cc: "12.0" > Signed-off-by: Kenneth Graunke > --- > src/mesa/drivers/dri/i965/brw_context.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/src/mesa/drivers/dri/i

[Mesa-dev] [PATCH] radeon: remove unnecessary checks

2016-06-12 Thread Jakob Sinclair
PIPE_SWIZZLE_X is always 0 and desc->swizzle is an unsigned char meaning that desc->swizzle can never be smaller then PIPE_SWIZZLE_X. Removing these checks doesn't change the code path at all because they would always give the same result. Issue discovered by Coverity. CID: 1337954 Signed-off-by:

[Mesa-dev] [PATCH] i965: Don't leak scratch BOs for TCS/TES.

2016-06-12 Thread Kenneth Graunke
These need to be freed too. Cc: "12.0" Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_context.c | 4 1 file changed, 4 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 7bbc128..a5c6581 100644 --- a/src/me

[Mesa-dev] [PATCH] glsl: reuse main extension table to appropriate restrict extensions

2016-06-12 Thread Ilia Mirkin
Previously we were only restricting based on ES/non-ES-ness and whether the overall enable bit had been flipped on. However we have been adding more fine-grained restrictions, such as based on compat profiles, as well as specific ES versions. Most of the time this doesn't matter, but it can create

Re: [Mesa-dev] [PATCH] swr: fix -march flag for AVX

2016-06-12 Thread Steven Newbury
On Fri, 2016-06-10 at 16:05 -0400, Ilia Mirkin wrote: > On Fri, Jun 10, 2016 at 3:43 PM, Tim Rowley om> wrote: > > > > Previously used core-avx-i was for ivybridge; > > corei7-avx allows sandybridge. > > --- > >  src/gallium/drivers/swr/Makefile.am | 2 +- > >  1 file changed, 1 insertion(+), 1 de

Re: [Mesa-dev] [PATCH 2/3] i965: Keep track of the per-thread scratch allocation in brw_stage_state.

2016-06-12 Thread Kenneth Graunke
On Saturday, June 11, 2016 2:50:27 PM PDT Francisco Jerez wrote: > diff --git a/src/mesa/drivers/dri/i965/brw_program.c > b/src/mesa/drivers/dri/i965/brw_program.c > index 792f81b..9f822d2 100644 > --- a/src/mesa/drivers/dri/i965/brw_program.c > +++ b/src/mesa/drivers/dri/i965/brw_program.c > @@ -