teximage: ensure that Tex*SubImage* checks format
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 2 Sep 2019 22:50:01 +0000 (18:50 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 4 Sep 2019 04:35:45 +0000 (00:35 -0400)
commit32d458fdff83454b9b3a9f77b9c34640e382b4f3
tree7c9b4a42b9a31bd820152421cd1e7b874bbd6994
parent8e92ce9ba566dd34e6f99b0042d16cba4b12f787
teximage: ensure that Tex*SubImage* checks format

We were previously not doing at least some of the checks. This uses the
same logic that is used in glTexImage*.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/teximage.c