[Mesa-dev] [PATCH] radv/si: fix optimal micro tile selection

Edward O'Callaghan funfunctor at folklore1984.net
Thu Nov 24 00:49:51 UTC 2016


Ah yes,
Reviewed-by: Edward O'Callaghan <funfunctor at folklore1984.net>

On 11/24/2016 11:04 AM, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
> 
> The same fix was posted for radeonsi, so port it here.
> 
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  src/amd/vulkan/radv_image.c | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
> index c3d125b..eb73f9a 100644
> --- a/src/amd/vulkan/radv_image.c
> +++ b/src/amd/vulkan/radv_image.c
> @@ -826,29 +826,29 @@ void radv_image_set_optimal_micro_tile_mode(struct radv_device *device,
>  		switch (micro_tile_mode) {
>  		case 0: /* displayable */
>  			switch (image->surface.bpe) {
> -			case 8:
> +			case 1:
>                              image->surface.tiling_index[0] = 10;
>                              break;
> -			case 16:
> +			case 2:
>                              image->surface.tiling_index[0] = 11;
>                              break;
> -			default: /* 32, 64 */
> +			default: /* 4, 8 */
>                              image->surface.tiling_index[0] = 12;
>                              break;
>  			}
>  			break;
>  		case 1: /* thin */
>  			switch (image->surface.bpe) {
> -			case 8:
> +			case 1:
>                                  image->surface.tiling_index[0] = 14;
>                                  break;
> -			case 16:
> +			case 2:
>                                  image->surface.tiling_index[0] = 15;
>                                  break;
> -			case 32:
> +			case 4:
>                                  image->surface.tiling_index[0] = 16;
>                                  break;
> -			default: /* 64, 128 */
> +			default: /* 8, 16 */
>                                  image->surface.tiling_index[0] = 17;
>                                  break;
>  			}
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161124/7508fd80/attachment.sig>


More information about the mesa-dev mailing list