OSDN Git Service

mesa/copyimage: report INVALID_VALUE for missing cube face
authorDave Airlie <airlied@redhat.com>
Thu, 2 Jun 2016 04:13:18 +0000 (14:13 +1000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 10 Jun 2016 11:31:22 +0000 (12:31 +0100)
commitab525a637af93a3f3037b0fd3ebf8b7446c613ed
treee79e16d99f1a5fdbd76ae83de80c025bcd6db572
parentd130c53ac1240450784439c06030a9a576a849c6
mesa/copyimage: report INVALID_VALUE for missing cube face

The specs says INVALID_VALUE for exceeding dimensions,
which is really what is happening here.

This fixes:
GL45-CTS.copy_image.non_existent_mipmap

Cc: "11.2 12.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Antia Puentes <apuentes@igalia.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit af7bf610cf74c6805f42babbcf85bc88b2b9453d)
src/mesa/main/copyimage.c