panfrost: Emit texture/sampler points for compute
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 27 Aug 2020 22:59:14 +0000 (18:59 -0400)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 31 Aug 2020 11:46:31 +0000 (07:46 -0400)
Fixes page faults on dEQP-GLES31.functional.shaders.opaque_type_indexing.sampler.const_literal.compute.sampler2d

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6516>

src/gallium/drivers/panfrost/pan_compute.c

index cef9ec46aaad219df77bde77094978759f04b2af..3628a38dbf388c59444f367a2952314f37340323 100644 (file)
@@ -127,6 +127,10 @@ panfrost_launch_grid(struct pipe_context *pipe,
                 cfg.shared = panfrost_emit_shared_memory(batch, info);
                 cfg.uniform_buffers = panfrost_emit_const_buf(batch,
                                 PIPE_SHADER_COMPUTE, &cfg.push_uniforms);
+                cfg.textures = panfrost_emit_texture_descriptors(batch,
+                                PIPE_SHADER_COMPUTE);
+                cfg.samplers = panfrost_emit_sampler_descriptors(batch,
+                                PIPE_SHADER_COMPUTE);
         }
 
         unsigned magic =