summaryrefslogtreecommitdiff
path: root/src/common/string_util.cpp
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2018-11-10 02:41:33 -0300
committerGravatar ReinUsesLisp2018-11-10 03:10:50 -0300
commit8d4bb10d443060dc56d6c6ddd9b84bbea00874d3 (patch)
treee171445255a669bf311468f0c005fe2045802627 /src/common/string_util.cpp
parentgl_resource_manager: Amend clang-format discrepancies (diff)
downloadyuzu-8d4bb10d443060dc56d6c6ddd9b84bbea00874d3.tar.gz
yuzu-8d4bb10d443060dc56d6c6ddd9b84bbea00874d3.tar.xz
yuzu-8d4bb10d443060dc56d6c6ddd9b84bbea00874d3.zip
gl_shader_decompiler: Guard out of bound geometry shader input reads
Geometry shaders follow a pattern that results in out of bound reads. This pattern is: - VSETP to predicate - Use that predicate to conditionally set a register a big number - Use the register to access geometry shaders At the time of writing this commit I don't know what's the intent of this number. Some drivers argue about these out of bound reads. To avoid this issue, input reads are guarded limiting reads to the highest posible vertex input of the current topology (e.g. points to 1 and triangles to 3).
Diffstat (limited to 'src/common/string_util.cpp')
0 files changed, 0 insertions, 0 deletions