mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
nvfx: fix format support code for compressed texture
A source line was put in the wrong place.
This commit is contained in:
parent
e6ff995d14
commit
95acfd0c8a
1 changed files with 1 additions and 1 deletions
|
|
@ -198,7 +198,6 @@ nvfx_screen_surface_format_supported(struct pipe_screen *pscreen,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
switch (format) {
|
|
||||||
if (tex_usage & PIPE_BIND_SAMPLER_VIEW) {
|
if (tex_usage & PIPE_BIND_SAMPLER_VIEW) {
|
||||||
switch (format) {
|
switch (format) {
|
||||||
case PIPE_FORMAT_DXT1_RGB:
|
case PIPE_FORMAT_DXT1_RGB:
|
||||||
|
|
@ -210,6 +209,7 @@ nvfx_screen_surface_format_supported(struct pipe_screen *pscreen,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
switch (format) {
|
||||||
case PIPE_FORMAT_B8G8R8A8_UNORM:
|
case PIPE_FORMAT_B8G8R8A8_UNORM:
|
||||||
case PIPE_FORMAT_B8G8R8X8_UNORM:
|
case PIPE_FORMAT_B8G8R8X8_UNORM:
|
||||||
case PIPE_FORMAT_B5G5R5A1_UNORM:
|
case PIPE_FORMAT_B5G5R5A1_UNORM:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue