[Mesa-dev] [PATCH] radv: set PERF_MOD in sample state like radeonsi.

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Fri Apr 28 16:04:05 UTC 2017


Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

On Fri, Apr 28, 2017 at 9:14 AM, Dave Airlie <airlied at gmail.com> wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> This just aligns the code with radeonsi.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  src/amd/vulkan/radv_image.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
> index edc62c3..1f7b87f 100644
> --- a/src/amd/vulkan/radv_image.c
> +++ b/src/amd/vulkan/radv_image.c
> @@ -308,7 +308,8 @@ si_make_texture_descriptor(struct radv_device *device,
>         state[1] = (S_008F14_DATA_FORMAT_GFX6(data_format) |
>                     S_008F14_NUM_FORMAT_GFX6(num_format));
>         state[2] = (S_008F18_WIDTH(width - 1) |
> -                   S_008F18_HEIGHT(height - 1));
> +                   S_008F18_HEIGHT(height - 1) |
> +                   S_008F18_PERF_MOD(4));
>         state[3] = (S_008F1C_DST_SEL_X(radv_map_swizzle(swizzle[0])) |
>                     S_008F1C_DST_SEL_Y(radv_map_swizzle(swizzle[1])) |
>                     S_008F1C_DST_SEL_Z(radv_map_swizzle(swizzle[2])) |
> --
> 2.7.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list