mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
v3d: Fix double-swapping of R/B on V3D 4.1
Fixes: 4018eb04e8 ("v3d: Use the TLB R/B swapping instead of recompiles when available.")
This commit is contained in:
parent
2b2f790e59
commit
03928dd682
1 changed files with 3 additions and 2 deletions
|
|
@ -487,9 +487,10 @@ v3d_set_framebuffer_state(struct pipe_context *pctx,
|
|||
util_format_description(cbuf->format);
|
||||
|
||||
/* For BGRA8 formats (DRI window system default format), we
|
||||
* need to swap R and B, since the HW's format is RGBA8.
|
||||
* need to swap R and B, since the HW's format is RGBA8. On
|
||||
* V3D 4.1+, the RCL can swap R and B on load/store.
|
||||
*/
|
||||
if (v3d->screen->devinfo.ver < 42 && v3d_cbuf->swap_rb)
|
||||
if (v3d->screen->devinfo.ver < 41 && v3d_cbuf->swap_rb)
|
||||
v3d->swap_color_rb |= 1 << i;
|
||||
|
||||
if (desc->swizzle[3] == PIPE_SWIZZLE_1)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue