summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-06-13 03:06:50 -0700
committerKenneth Graunke <[email protected]>2019-02-21 10:26:06 -0800
commit149408a36031a32b376e3d6d86fa6958295080b1 (patch)
tree5f0d993fdc55d93850eebc4b834e9fd1e96b4fb7
parentde782e5b39efbb6f395950021e7d5b3dc394c1fa (diff)
iris: untested SAMPLER_STATE pin BO fix
-rw-r--r--src/gallium/drivers/iris/iris_state.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c
index c7517f2c2cd..76481b4ccde 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -2354,6 +2354,10 @@ iris_upload_render_state(struct iris_context *ice,
!ice->shaders.prog[stage])
continue;
+ struct pipe_resource *res = ice->state.sampler_table_resource[stage];
+ if (res)
+ iris_use_pinned_bo(batch, iris_resource_bo(res), false);
+
iris_emit_cmd(batch, GENX(3DSTATE_SAMPLER_STATE_POINTERS_VS), ptr) {
ptr._3DCommandSubOpcode = 43 + stage;
ptr.PointertoVSSamplerState = ice->state.sampler_table_offset[stage];