[Mesa-dev] [PATCH 1/2] radeonsi: Fix 1D tiling mode index for non-scanout resources.
Christian König
deathsimple at vodafone.de
Fri Jan 18 04:11:50 PST 2013
Am 17.01.2013 19:34, schrieb Michel Dänzer:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
For both patches: Reviewed-by: Christian König <christian.koenig at amd.com>
> ---
> src/gallium/drivers/radeonsi/si_state.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
> index f7fe603..ee353ed 100644
> --- a/src/gallium/drivers/radeonsi/si_state.c
> +++ b/src/gallium/drivers/radeonsi/si_state.c
> @@ -1524,7 +1524,10 @@ static unsigned si_tile_mode_index(struct r600_resource_texture *rtex, unsigned
> case RADEON_SURF_MODE_LINEAR_ALIGNED:
> return 8;
> case RADEON_SURF_MODE_1D:
> - return 9;
> + if (rtex->surface.flags & RADEON_SURF_SCANOUT)
> + return 9;
> + else
> + return 13;
> case RADEON_SURF_MODE_2D:
> if (rtex->surface.flags & RADEON_SURF_SCANOUT) {
> switch (util_format_get_blocksize(rtex->real_format)) {
More information about the mesa-dev
mailing list