diff options
author | Roland Scheidegger <sroland@vmware.com> | 2012-11-29 00:12:36 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2012-11-29 11:29:51 +0000 |
commit | 5f9439564af85291229f3083fc7f3c18651da1c2 (patch) | |
tree | 6fc70b8f8eea33a2c345b696808cb3d736e18217 /tests/shaders/glsl-array-bounds-04.shader_test | |
parent | 4d84f3e7f5a647a78e8d80fc0b49d33f678794b6 (diff) |
fs-texelFetchOffset-2D: don't assume undefined values to be solid black
core GL specifies out-of-bound texel fetches return undefined results,
except in a robust context with ARB_robust_buffer_access_behavior supported
(which is core in 4.3), in which case texel fetch will return 0 (OpenGL 4.3
compatibility profile, page 387, subsection 11.1.3.2 Texel Fetches).
Since the test requires neither robust context nor that extension it cannot
assume any specific result value. In any case even returning zero is not what
the test expected, since it wanted [0,0,0,1] instead.
(With this change softpipe passes the test, as it clamps the coords.)
v2: fix black->undefined, formatting, comments
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'tests/shaders/glsl-array-bounds-04.shader_test')
0 files changed, 0 insertions, 0 deletions