diff options
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/svga/svga_surface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_surface.c b/src/gallium/drivers/svga/svga_surface.c index 935384150cc..2ffdce5e10c 100644 --- a/src/gallium/drivers/svga/svga_surface.c +++ b/src/gallium/drivers/svga/svga_surface.c @@ -461,7 +461,8 @@ svga_validate_surface_view(struct svga_context *svga, struct svga_surface *s) * svga_validate_pipe_sampler_view(). */ if (view_format == SVGA3D_B8G8R8A8_UNORM && - stex->key.format == SVGA3D_B8G8R8X8_TYPELESS) { + (stex->key.format == SVGA3D_B8G8R8X8_UNORM || + stex->key.format == SVGA3D_B8G8R8X8_TYPELESS)) { view_format = SVGA3D_B8G8R8X8_UNORM; } |