mesa: properly return GetTexLevelParameter queries for buffer textures
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 27 Feb 2016 21:04:51 +0000 (16:04 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 29 Mar 2016 00:18:46 +0000 (20:18 -0400)
commit659beca666c4e90ab5f366b231a94ed437898b80
tree2408bd6840b45bbf5c15c839794106a38c90266b
parent4ed4a2af8628e6adaa04fbe489d2d95747cf3634
mesa: properly return GetTexLevelParameter queries for buffer textures

This fixes all failures with dEQP tests in this area. While
ARB_texture_buffer_object explicitly says that GetTexLevelParameter & co
should not be supported, GL 3.1 reverses this decision and allows all of
these queries there.

Conversely, there is no text that forbids the buffer-specific queries
from being used with non-buffer images.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/texparam.c