diff options
author | Dave Airlie <[email protected]> | 2018-02-02 17:07:20 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2018-02-07 06:08:12 +1000 |
commit | c9c4f0b7226b1838c797f9257389c5284be401d9 (patch) | |
tree | fbf670bb0376ee9e1e6f9f1f1b2542b921b358ad /src | |
parent | ab5cee4c241cb360cf67101dd751e0f38637b526 (diff) |
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 <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 2 |
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; |