Skip to content

Commit

Permalink
gl: Restrict compute image bindings to [0-8]
Browse files Browse the repository at this point in the history
NVIDIA only supports 8 compute image slots even on modern GPUs.
  • Loading branch information
kd-11 committed Sep 18, 2022
1 parent 89ef57b commit 68e8ee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpcs3/Emu/RSX/GL/glutils/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#define GL_INTERPRETER_VERTEX_BLOCK SSBO_SLOT(0)
#define GL_INTERPRETER_FRAGMENT_BLOCK SSBO_SLOT(1)
#define GL_COMPUTE_BUFFER_SLOT(index) SSBO_SLOT(2 + index)
#define GL_COMPUTE_IMAGE_SLOT(index) UBO_SLOT(index)
#define GL_COMPUTE_IMAGE_SLOT(index) SSBO_SLOT(index)

//Function call wrapped in ARB_DSA vs EXT_DSA compat check
#define DSA_CALL(func, object_name, target, ...)\
Expand Down

0 comments on commit 68e8ee4

Please sign in to comment.