aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-09-10 12:10:26 -0700
committerKenneth Graunke <[email protected]>2019-09-18 15:44:22 -0700
commitcaa0aebd01e893a4a1809e32d27d5a679d80e793 (patch)
tree9480617a5be32dc3fe6f1bb7d3d94cbf2b02b3de
parent4b7e7956f0f161c958f570f1201517d50e5d3ed4 (diff)
iris: Flag IRIS_DIRTY_BINDINGS_XS on constant buffer rebinds
We upload a new SURFACE_STATE for the UBO/SSBO in question, which means that we need new binding tables as well. Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
-rw-r--r--src/gallium/drivers/iris/iris_state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c
index d45b1736af3..ed669f7ecb9 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -6051,7 +6051,8 @@ iris_rebind_buffer(struct iris_context *ice,
if (res->bo == iris_resource_bo(cbuf->buffer)) {
iris_upload_ubo_ssbo_surf_state(ice, cbuf, surf_state, false);
- ice->state.dirty |= IRIS_DIRTY_CONSTANTS_VS << s;
+ ice->state.dirty |=
+ (IRIS_DIRTY_CONSTANTS_VS | IRIS_DIRTY_BINDINGS_VS) << s;
}
}
}