diff options
author | Marek Olšák <[email protected]> | 2015-07-27 19:01:21 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-07-31 16:49:17 +0200 |
commit | 190a40580fdfccf00db93f5c8f15bbf16914be2c (patch) | |
tree | 928d2d7a448ab9feb1264fac8dd81cc1da419d48 /src/gallium/drivers/radeonsi | |
parent | 3ca21320583a4c0ba9bee755935df5e1f1637fdf (diff) |
radeonsi: fix a regression since the resource_copy_region cleanup
Broken since:
46b2b3b - radeonsi: don't change pipe_resource in resource_copy_region
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91444
Reviewed-and-Tested-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 86e1624f3d3..d0269f0fe86 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -2511,7 +2511,7 @@ si_create_sampler_view_custom(struct pipe_context *ctx, S_008F1C_LAST_LEVEL(texture->nr_samples > 1 ? util_logbase2(texture->nr_samples) : last_level) | - S_008F1C_TILING_INDEX(si_tile_mode_index(tmp, 0, false)) | + S_008F1C_TILING_INDEX(si_tile_mode_index(tmp, base_level, false)) | S_008F1C_POW2_PAD(texture->last_level > 0) | S_008F1C_TYPE(si_tex_dim(texture->target, texture->nr_samples))); view->state[4] = (S_008F20_DEPTH(depth - 1) | S_008F20_PITCH(pitch - 1)); |