iris: untested SAMPLER_STATE pin BO fix
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 13 Jun 2018 10:06:50 +0000 (03:06 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:06 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_state.c

index c7517f2c2cdfacad63231cc4d2ce252b30c9e739..76481b4ccdef074e7e0384f219b3dfaa6d2fcef2 100644 (file)
@@ -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];