mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
softpipe: add texture target sanity check assertion
This commit is contained in:
parent
14e5bff97b
commit
30320f0afb
1 changed files with 5 additions and 0 deletions
|
|
@ -127,6 +127,11 @@ softpipe_is_format_supported( struct pipe_screen *screen,
|
|||
unsigned tex_usage,
|
||||
unsigned geom_flags )
|
||||
{
|
||||
assert(target == PIPE_TEXTURE_1D ||
|
||||
target == PIPE_TEXTURE_2D ||
|
||||
target == PIPE_TEXTURE_3D ||
|
||||
target == PIPE_TEXTURE_CUBE);
|
||||
|
||||
switch(format) {
|
||||
case PIPE_FORMAT_DXT1_RGB:
|
||||
case PIPE_FORMAT_DXT1_RGBA:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue