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)
committerDave Airlie <airlied@redhat.com>
Thu, 2 Jun 2016 20:08:44 +0000 (06:08 +1000)
commitaf7bf610cf74c6805f42babbcf85bc88b2b9453d
treefd703eaa8b7cc7d263c38780f1215980364e0e79
parentc0856eacf1f76f294e2b89eb7250580517018567
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>
src/mesa/main/copyimage.c