radeonsi: Set tiling mode index in sampler view state.
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 18 Apr 2012 08:51:48 +0000 (10:51 +0200)
committerMichel Dänzer <michel@daenzer.net>
Wed, 18 Apr 2012 08:51:48 +0000 (10:51 +0200)
Hardcode index for linear mode for now.

src/gallium/drivers/radeonsi/evergreen_state.c

index cc271df5a64119cdd8854199baa342ed11a66ca5..f041f3db5c0833a87a794a565b34f5467e58a4a6 100644 (file)
@@ -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));