OSDN Git Service

svga: fix use of SVGA3D_x vs. PIPE_FORMAT_x in svga_is_format_supported()
authorBrian Paul <brianp@vmware.com>
Fri, 24 Feb 2012 16:46:44 +0000 (17:46 +0100)
committerBrian Paul <brianp@vmware.com>
Fri, 24 Feb 2012 17:15:37 +0000 (10:15 -0700)
commite0095548c02200d00a4edbd5bb1a28a32c324c5b
treeccaa0c64baf00d3ae17feccfbcd8896a63c6824e
parent590321c39db86baddf656b6e550cbd76ac1e569a
svga: fix use of SVGA3D_x vs. PIPE_FORMAT_x in svga_is_format_supported()

Two of the switch cases used PIPE_FORMAT_ tokens instead of SVGA3D_ tokens.
As it happens, the token values are equal for these formats so there's no
net change.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
src/gallium/drivers/svga/svga_screen.c