r300: keep all vertex atributes 32bit on big endian
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

The VAP has only a global swap mode, not per-attribute endian
control. Keep all TCL vertex attributes at 32-bit.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40501>
This commit is contained in:
Pavel Ondračka 2026-03-16 17:40:31 +01:00 committed by Marge Bot
parent 2cfbc7ef9a
commit 2ac3652f30

View file

@ -334,6 +334,14 @@ r300_translate_vertex_data_type(enum pipe_format format) {
return R300_INVALID_FORMAT;
}
#if UTIL_ARCH_BIG_ENDIAN
/* On big-endian, the VAP has only a global swap mode, not per-attribute
* endian control. Keep TCL vertex attributes at 32-bit.
*/
if (desc->channel[i].size < 32)
return R300_INVALID_FORMAT;
#endif
switch (desc->channel[i].type) {
/* Half-floats, floats, doubles */
case UTIL_FORMAT_TYPE_FLOAT: