diff options
author | Michel Dänzer <[email protected]> | 2012-09-04 18:58:38 +0200 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2012-09-06 15:39:13 +0200 |
commit | cf697e875c58c963f50dc620d11762293e976653 (patch) | |
tree | 2514ffe39268dbee3b29efa13b94bd43fafc36d2 | |
parent | b7d96ca35e7652596851fe86d495e82c25ffcb55 (diff) |
radeonsi: Mipmaps require memory footprint to be padded to powers of two.
Signed-off-by: Michel Dänzer <[email protected]>
Reviewed-by: Christian König <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index dac64aab80d..762887d224e 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -2107,6 +2107,7 @@ static struct pipe_sampler_view *si_create_sampler_view(struct pipe_context *ctx S_008F1C_BASE_LEVEL(state->u.tex.first_level) | S_008F1C_LAST_LEVEL(state->u.tex.last_level) | S_008F1C_TILING_INDEX(tiling_index) | + S_008F1C_POW2_PAD(texture->last_level > 0) | S_008F1C_TYPE(si_tex_dim(texture->target))); view->state[4] = (S_008F20_DEPTH(depth - 1) | S_008F20_PITCH(pitch - 1)); view->state[5] = (S_008F24_BASE_ARRAY(state->u.tex.first_layer) | |