mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
r300g: add Z24X8 to the list of unsupported sampler formats on R3xx-R4xx
This commit is contained in:
parent
38a97148bf
commit
c5e0b0bc37
1 changed files with 7 additions and 1 deletions
|
|
@ -220,12 +220,18 @@ static boolean check_tex_format(enum pipe_format format, uint32_t usage,
|
|||
|
||||
/* Z buffer or texture */
|
||||
case PIPE_FORMAT_Z16_UNORM:
|
||||
retval = usage &
|
||||
(PIPE_TEXTURE_USAGE_DEPTH_STENCIL |
|
||||
PIPE_TEXTURE_USAGE_SAMPLER);
|
||||
break;
|
||||
|
||||
/* 24bit Z buffer can only be used as a texture on R500. */
|
||||
case PIPE_FORMAT_Z24X8_UNORM:
|
||||
/* Z buffer with stencil or texture */
|
||||
case PIPE_FORMAT_Z24S8_UNORM:
|
||||
retval = usage &
|
||||
(PIPE_TEXTURE_USAGE_DEPTH_STENCIL |
|
||||
PIPE_TEXTURE_USAGE_SAMPLER);
|
||||
(is_r500 ? PIPE_TEXTURE_USAGE_SAMPLER : 0));
|
||||
break;
|
||||
|
||||
/* Definitely unsupported formats. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue