From c9c4f0b7226b1838c797f9257389c5284be401d9 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 2 Feb 2018 17:07:20 +1000 Subject: [PATCH] r600/images: set offset for compute shaders with number of declared samplers for frag shaders we get a value in the key, I expect I need to make compute work better Reviewed-by: Roland Scheidegger Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/r600_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 08bc1484793..4aaa3621d74 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -3247,7 +3247,7 @@ static int r600_shader_from_tgsi(struct r600_context *rctx, break; case PIPE_SHADER_COMPUTE: shader->rat_base = 0; - shader->image_size_const_offset = 0; + shader->image_size_const_offset = ctx.info.file_count[TGSI_FILE_SAMPLER]; break; default: break; -- 2.30.2