Re: [Mesa-dev] [PATCH 2/2] radeonsi: use re-Z

2016-02-24 Thread Michel Dänzer
On 24.02.2016 19:28, Marek Olšák wrote: > On Wed, Feb 24, 2016 at 4:02 AM, Michel Dänzer wrote: >> On 24.02.2016 01:45, Marek Olšák wrote: >>> From: Marek Olšák >>> >>> This can increase perf for shaders that kill pixels (kill, alpha-test, >>> alpha-to-coverage). >>> --- >>> src/gallium/drivers/

Re: [Mesa-dev] [PATCH 2/2] radeonsi: use re-Z

2016-02-24 Thread Grigori Goronzy
On 2016-02-23 17:45, Marek Olšák wrote: From: Marek Olšák This can increase perf for shaders that kill pixels (kill, alpha-test, alpha-to-coverage). --- src/gallium/drivers/radeonsi/si_shader.h| 1 + src/gallium/drivers/radeonsi/si_state.c | 6 +++--- src/gallium/drivers/rade

Re: [Mesa-dev] [PATCH 2/2] radeonsi: use re-Z

2016-02-24 Thread Grigori Goronzy
On 2016-02-24 12:47, Marek Olšák wrote: On Wed, Feb 24, 2016 at 12:22 PM, Grigori Goronzy wrote: S_00B32C_SCRATCH_EN(shader->config.scratch_bytes_per_wave > 0)); + + /* Prefer RE_Z if the shader is complex enough. */ + if (info->num_memory_instructions >= 2 || + shader->bi

Re: [Mesa-dev] [PATCH 2/2] radeonsi: use re-Z

2016-02-24 Thread Marek Olšák
On Wed, Feb 24, 2016 at 4:02 AM, Michel Dänzer wrote: > On 24.02.2016 01:45, Marek Olšák wrote: >> From: Marek Olšák >> >> This can increase perf for shaders that kill pixels (kill, alpha-test, >> alpha-to-coverage). >> --- >> src/gallium/drivers/radeonsi/si_shader.h| 1 + >> src/galliu

Re: [Mesa-dev] [PATCH 2/2] radeonsi: use re-Z

2016-02-24 Thread Marek Olšák
On Wed, Feb 24, 2016 at 12:22 PM, Grigori Goronzy wrote: > On 2016-02-23 17:45, Marek Olšák wrote: >> >> From: Marek Olšák >> >> This can increase perf for shaders that kill pixels (kill, alpha-test, >> alpha-to-coverage). >> --- >> src/gallium/drivers/radeonsi/si_shader.h| 1 + >> src/

Re: [Mesa-dev] [PATCH 2/2] radeonsi: use re-Z

2016-02-23 Thread Michel Dänzer
On 24.02.2016 01:45, Marek Olšák wrote: > From: Marek Olšák > > This can increase perf for shaders that kill pixels (kill, alpha-test, > alpha-to-coverage). > --- > src/gallium/drivers/radeonsi/si_shader.h| 1 + > src/gallium/drivers/radeonsi/si_state.c | 6 +++--- > src/galliu

[Mesa-dev] [PATCH 2/2] radeonsi: use re-Z

2016-02-23 Thread Marek Olšák
From: Marek Olšák This can increase perf for shaders that kill pixels (kill, alpha-test, alpha-to-coverage). --- src/gallium/drivers/radeonsi/si_shader.h| 1 + src/gallium/drivers/radeonsi/si_state.c | 6 +++--- src/gallium/drivers/radeonsi/si_state_shaders.c | 16 +