projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab5cee4
)
r600/images: set offset for compute shaders with number of declared samplers
author
Dave Airlie
<airlied@redhat.com>
Fri, 2 Feb 2018 07:07:20 +0000
(17:07 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 6 Feb 2018 20:08:12 +0000
(06:08 +1000)
for frag shaders we get a value in the key, I expect I need
to make compute work better
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_shader.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/r600_shader.c
b/src/gallium/drivers/r600/r600_shader.c
index 08bc14847937c333c68b0ca920a1d05e6cce32cd..4aaa3621d748a10fd1b9dd6a6b86d09a24dfb9e6 100644
(file)
--- 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;