summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_hierarchical_visitor.h
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2014-05-27 18:16:01 -0700
committerKenneth Graunke <kenneth@whitecape.org>2014-05-28 13:12:10 -0700
commitbb9623a1a8b1884817422752c8dced9f084d4547 (patch)
tree7b50096979c09d1e6907e87a60d3f5a1ab2f5496 /src/glsl/ir_hierarchical_visitor.h
parent9ec7cb8aa0387a89cccea3c052d7c5adf05b6a8c (diff)
downloadexternal_mesa3d-bb9623a1a8b1884817422752c8dced9f084d4547.zip
external_mesa3d-bb9623a1a8b1884817422752c8dced9f084d4547.tar.gz
external_mesa3d-bb9623a1a8b1884817422752c8dced9f084d4547.tar.bz2
i965: Fix repeated usage of rectangle texture coordinate scaling.
Previously, we set up new entries in the params[] array on every access of a rectangle texture. Unfortunately, we only reserve space for (2 * MaxTextureImageUnits) extra entries, so programs which accessed rectangle textures more times than that would write off the end of the array and likely crash. We don't really have a decent mapping between the index returned by _mesa_add_state_reference and our index into the params array, so we have to manually search for it. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78691 Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net> Cc: mesa-stable@lists.freedesktop.org
Diffstat (limited to 'src/glsl/ir_hierarchical_visitor.h')
0 files changed, 0 insertions, 0 deletions