From: Dave Airlie Date: Fri, 2 Feb 2018 07:07:20 +0000 (+1000) Subject: r600/images: set offset for compute shaders with number of declared samplers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c9c4f0b7226b1838c797f9257389c5284be401d9;p=mesa.git 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 --- 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;