svga: Clamp advertised PIPE_SHADER_CAP_MAX_TEMPS to SVGA3D_TEMPREG_MAX.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 27 Feb 2012 11:21:32 +0000 (11:21 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 27 Feb 2012 19:24:42 +0000 (19:24 +0000)
commite567b34f0d67a184ee17013f5262122fcd1380c0
treeaada589514103a417aac638ed5af141e16a9bb11
parentbf4fedcef3e345f5117232d58bd9000c2441de74
svga: Clamp advertised PIPE_SHADER_CAP_MAX_TEMPS to SVGA3D_TEMPREG_MAX.

Some backends may advertise more temps than SVGA3D_TEMPREG_MAX, but the
driver is hardwired to only support up to the value defined by
SVGA3D_TEMPREG_MAX, so clamp to it.

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