summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/imports.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-04-14 02:19:59 -0700
committerKenneth Graunke <[email protected]>2016-06-13 15:38:47 -0700
commit2df8f4a2534e1e2258a719e7c5cbf342621fdf1f (patch)
tree9cc3c9c5002c8ca28c97c52f33865019b49b6d4b /src/mesa/main/imports.c
parentcf9bb9acac0fd3b5926da8102bda33171a906a6b (diff)
mesa: Make TexSubImage check negative dimensions sooner.
Two dEQP tests expect INVALID_VALUE errors for negative width/height parameters, but get INVALID_OPERATION because they haven't actually created a destination image. This is arguably not a bug in Mesa, as there's no specified ordering of error conditions. However, it's also really easy to make the tests pass, and there's no real harm in doing these checks earlier. Fixes: dEQP-GLES3.functional.negative_api.texture.texsubimage3d_neg_width_height dEQP-GLES31.functional.debug.negative_coverage.get_error.texture.texsubimage3d_neg_width_height v2: Drop redundant check (caught by Anuj Phogat). Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa/main/imports.c')
0 files changed, 0 insertions, 0 deletions