svga: use SVGA3D_QUERYTYPE_MAX for svga query type check
authorCharmaine Lee <charmainel@vmware.com>
Thu, 1 Sep 2016 18:07:59 +0000 (11:07 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 17 Sep 2016 16:09:00 +0000 (10:09 -0600)
commit50359ddb5d051b2b48d8da2403d4d99d135cbf25
tree1cb6d0754e913ffb9c07fc9484ae8612a5f6b613
parentee39814d90b9ecfb35dc4b5977b1f1ced0c0fd83
svga: use SVGA3D_QUERYTYPE_MAX for svga query type check

Use SVGA3D_QUERYTYPE_MAX instead of SVGA_QUERY_MAX for
svga query type check.

Tested with various OpenGL apps with GALLIUM_HUD set.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/svga/svga_pipe_query.c