rsx: Pass vertex attributes streamed via register write in PS3-correct format

- TODO: Optimize this, we can avoid the double bswap in FIFO and then in attribute push
  Not very important since nobody is doing register push in high-performance path.
This commit is contained in:
kd-11 2021-06-13 23:34:01 +03:00 committed by kd-11
parent 6f874be41b
commit d3ff67ffb5
3 changed files with 10 additions and 29 deletions

View file

@ -341,9 +341,10 @@ namespace glsl
" ret.xy = unpackHalf2x16(tmp.x);\n"
" ret.zw = unpackHalf2x16(tmp.y);\n"
" }\n"
" else if (desc.type == VTX_FMT_UINT8 || desc.type == VTX_FMT_UNORM8)\n"
" else if (elem_size == 1) //(desc.type == VTX_FMT_UINT8 || desc.type == VTX_FMT_UNORM8)\n"
" {\n"
" ret = vec4(desc.swap_bytes? result.wzyx : result);\n"
" // Ignore bswap on single byte channels\n"
" ret = vec4(result);\n"
" }\n"
" else //if (desc.type == VTX_FMT_COMP32)\n"
" {\n"