diff options
author | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-01-19 11:32:37 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:11 -0800 |
commit | 4fd1f70e62e1bbba228712065f756a1c30650432 (patch) | |
tree | b21f524c719e8572c93f742c76ecfe362d96fe1c /src/gallium/drivers/iris/iris_query.c | |
parent | 4801af2f26ced530b6a8c86a79a16857e670959a (diff) |
iris: always include an extra constbuf0 if using UBOs
In st_nir_lower_uniforms_to_ubo() all UBO access in the shader have
its index incremented to open room for uniforms in constbuf0. So if
we use UBOs, we always need to include the extra binding entry in the
table.
To avoid doing this checks both when compiling the shader and when
assigning binding tables, store the num_cbufs in iris_compiled_shader.
Fixes a bunch of tests from Piglit and CTS that use UBOs but don't use
uniforms or system values. Note that some tests fitting this criteria
were passing because the UBOs were moved to be push
constants (avoiding the problem).
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/drivers/iris/iris_query.c')
0 files changed, 0 insertions, 0 deletions