mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
r300: keep all vertex atributes 32bit on big endian
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:
parent
2cfbc7ef9a
commit
2ac3652f30
1 changed files with 8 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue