mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 00:10:10 +01:00
i965: Don't use tiled_memcpy to download from RGBX or BGRX surfaces
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88841 Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
parent
af8fd694d4
commit
2cebaac479
2 changed files with 14 additions and 0 deletions
|
|
@ -132,6 +132,13 @@ intel_readpixels_tiled_memcpy(struct gl_context * ctx,
|
|||
if (rb->NumSamples > 1)
|
||||
return false;
|
||||
|
||||
/* We can't handle copying from RGBX or BGRX because the tiled_memcpy
|
||||
* function doesn't set the last channel to 1.
|
||||
*/
|
||||
if (rb->Format == MESA_FORMAT_B8G8R8X8_UNORM ||
|
||||
rb->Format == MESA_FORMAT_R8G8B8X8_UNORM)
|
||||
return false;
|
||||
|
||||
if (!intel_get_memcpy(rb->Format, format, type, &mem_copy, &cpp))
|
||||
return false;
|
||||
|
||||
|
|
|
|||
|
|
@ -392,6 +392,13 @@ intel_gettexsubimage_tiled_memcpy(struct gl_context *ctx,
|
|||
packing->Invert)
|
||||
return false;
|
||||
|
||||
/* We can't handle copying from RGBX or BGRX because the tiled_memcpy
|
||||
* function doesn't set the last channel to 1.
|
||||
*/
|
||||
if (texImage->TexFormat == MESA_FORMAT_B8G8R8X8_UNORM ||
|
||||
texImage->TexFormat == MESA_FORMAT_R8G8B8X8_UNORM)
|
||||
return false;
|
||||
|
||||
if (!intel_get_memcpy(texImage->TexFormat, format, type, &mem_copy, &cpp))
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue