summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2012-04-18 10:51:48 +0200
committerMichel Dänzer <[email protected]>2012-04-18 10:51:48 +0200
commitf2c81a4bfffb5be49b1a2c14562e8e025731a45b (patch)
tree27cab282fefdbf6b85bd4a56d9ea54a5926b07e0
parent29d7186e4cb2ae01e888368276602fe5072fe2d9 (diff)
radeonsi: Set tiling mode index in sampler view state.
Hardcode index for linear mode for now.
-rw-r--r--src/gallium/drivers/radeonsi/evergreen_state.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/evergreen_state.c b/src/gallium/drivers/radeonsi/evergreen_state.c
index cc271df5a64..f041f3db5c0 100644
--- a/src/gallium/drivers/radeonsi/evergreen_state.c
+++ b/src/gallium/drivers/radeonsi/evergreen_state.c
@@ -1271,6 +1271,7 @@ static struct pipe_sampler_view *evergreen_create_sampler_view(struct pipe_conte
S_008F1C_DST_SEL_W(si_map_swizzle(swizzle[3])) |
S_008F1C_BASE_LEVEL(state->u.tex.first_level) |
S_008F1C_LAST_LEVEL(state->u.tex.last_level) |
+ S_008F1C_TILING_INDEX(8) | /* XXX */
S_008F1C_TYPE(si_tex_dim(texture->target)));
view->state[4] = (S_008F20_DEPTH(depth - 1) |
S_008F20_PITCH((pitch / 8) - 1));