mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 08:21:29 +12:00
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:
parent
6f874be41b
commit
d3ff67ffb5
3 changed files with 10 additions and 29 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue