mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 10:42:36 +01:00
rsx: Allow vertex fetch from uninitialized register
This commit is contained in:
parent
1d214ed26a
commit
eed9e56bf4
@ -289,10 +289,10 @@ namespace glsl
|
||||
|
||||
"vec4 fetch_attribute(const in attribute_desc desc, const in int vertex_id, usamplerBuffer input_stream)\n"
|
||||
"{\n"
|
||||
" const int elem_size_table[] = { 2, 4, 2, 1, 2, 4, 1 };\n"
|
||||
" const float scaling_table[] = { 32767.5, 1., 1., 255., 1., 32767., 1. };\n"
|
||||
" const int elem_size = elem_size_table[desc.type - 1];\n"
|
||||
" const vec4 scale = scaling_table[desc.type - 1].xxxx;\n\n"
|
||||
" const int elem_size_table[] = { 0, 2, 4, 2, 1, 2, 4, 1 };\n"
|
||||
" const float scaling_table[] = { 1., 32767.5, 1., 1., 255., 1., 32767., 1. };\n"
|
||||
" const int elem_size = elem_size_table[desc.type];\n"
|
||||
" const vec4 scale = scaling_table[desc.type].xxxx;\n\n"
|
||||
|
||||
" uvec4 tmp, result = uvec4(0u);\n"
|
||||
" vec4 ret;\n"
|
||||
|
Loading…
Reference in New Issue
Block a user