mesa: allow multisample texture targets in [Get]TexParameter*
authorChris Forbes <chrisf@ijw.co.nz>
Fri, 15 Mar 2013 09:52:12 +0000 (22:52 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Sun, 31 Mar 2013 09:19:36 +0000 (22:19 +1300)
commite0015c819c898e2e0984b534aa3e3c33441c0f66
tree53f2d5666725f36df8f47e057cdff29479db442d
parentb15c558c855d24b3a3340766486dd4e08cd42542
mesa: allow multisample texture targets in [Get]TexParameter*

ARB_texture_storage_multisample allows texture parameters to be
queried for TEXTURE_2D_MULTISAMPLE and TEXTURE_2D_MULTISAMPLE_ARRAY
targets.

Some parameters may also be set, with the following exceptions:

- TEXTURE_BASE_LEVEL may not be set to a nonzero value; generates
   INVALID_OPERATION

- any state which appears in the `per-sampler` state table may not
  be set; generates INVALID_OPERATION

V2: Don't introduce bogus handling of TEXTURE_MAX_LEVEL

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/texparam.c