mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
r300g: only allow byteswapped formats on big endian
They cause regressions on little endian. Fixes:172bfdaa9e("r300g: add support for PIPE_FORMAT_x8R8G8B8_*") Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98869 Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Signed-off-by: Marek Olšák <marek.olsak@amd.com> (cherry picked from commit66d1cb587a)
This commit is contained in:
parent
eba32b351f
commit
b75c0bf73a
1 changed files with 5 additions and 0 deletions
|
|
@ -47,6 +47,11 @@
|
|||
*/
|
||||
static enum pipe_format r300_unbyteswap_array_format(enum pipe_format format)
|
||||
{
|
||||
/* FIXME: Disabled on little endian because of a reported regression:
|
||||
* https://bugs.freedesktop.org/show_bug.cgi?id=98869 */
|
||||
if (PIPE_ENDIAN_NATIVE != PIPE_ENDIAN_BIG)
|
||||
return format;
|
||||
|
||||
/* Only BGRA 8888 array formats are supported for simplicity of
|
||||
* the implementation. */
|
||||
switch (format) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue