summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r--src/gallium/drivers/r600/r600_shader.c2
1 files changed, 1 insertions, 1 deletions
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;