mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
panfrost: Use PAN_V6_SWIZZLE() in pan_blit.c
Suggested-by: Icecream95 Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8125>
This commit is contained in:
parent
25eb7c52dc
commit
728069485d
1 changed files with 2 additions and 4 deletions
|
|
@ -325,8 +325,7 @@ midgard_load_emit_texture(struct pan_pool *pool, struct MALI_DRAW *draw,
|
|||
0, 0,
|
||||
image->nr_samples,
|
||||
0,
|
||||
(MALI_CHANNEL_R << 0) | (MALI_CHANNEL_G << 3) |
|
||||
(MALI_CHANNEL_B << 6) | (MALI_CHANNEL_A << 9),
|
||||
PAN_V6_SWIZZLE(R, G, B, A),
|
||||
image->bo->ptr.gpu + image->first_layer *
|
||||
panfrost_get_layer_stride(image->slices,
|
||||
image->dim == MALI_TEXTURE_DIMENSION_3D,
|
||||
|
|
@ -502,8 +501,7 @@ bifrost_load_emit_texture(struct pan_pool *pool, struct MALI_DRAW *draw,
|
|||
0, 0,
|
||||
image->nr_samples,
|
||||
0,
|
||||
(MALI_CHANNEL_R << 0) | (MALI_CHANNEL_G << 3) |
|
||||
(MALI_CHANNEL_B << 6) | (MALI_CHANNEL_A << 9),
|
||||
PAN_V6_SWIZZLE(R, G, B, A),
|
||||
image->bo->ptr.gpu + image->first_layer *
|
||||
panfrost_get_layer_stride(image->slices,
|
||||
image->dim == MALI_TEXTURE_DIMENSION_3D,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue