From fd41dece39c7d6110951e0fd6fc1693663e7c10d Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 27 Aug 2020 18:59:14 -0400 Subject: [PATCH] panfrost: Emit texture/sampler points for compute Fixes page faults on dEQP-GLES31.functional.shaders.opaque_type_indexing.sampler.const_literal.compute.sampler2d Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_compute.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/panfrost/pan_compute.c b/src/gallium/drivers/panfrost/pan_compute.c index cef9ec46aaa..3628a38dbf3 100644 --- a/src/gallium/drivers/panfrost/pan_compute.c +++ b/src/gallium/drivers/panfrost/pan_compute.c @@ -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 = -- 2.30.2