summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-11-09 11:57:03 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:09 -0800
commit6d19fe376debb262167a6d4ad87b43e5fa39ee54 (patch)
treefa43de7d255686cb237c38202beab432ae9f6126 /src
parent1ef68d77c06993d44bd44e0fc48abeb1a848e597 (diff)
iris: enable push constants if we have sysvals but no uniforms
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/iris/iris_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c
index 3d78186638c..0ab9df0e297 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -3239,7 +3239,7 @@ iris_store_fs_state(struct iris_context *ice,
ps.FloatingPointMode = prog_data->use_alt_mode;
ps.MaximumNumberofThreadsPerPSD = 64 - (GEN_GEN == 8 ? 2 : 1);
- ps.PushConstantEnable = prog_data->nr_params > 0 ||
+ ps.PushConstantEnable = shader->num_system_values > 0 ||
prog_data->ubo_ranges[0].length > 0;
/* From the documentation for this packet: