mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
r600: visual depth has no meaning here.
fbos get angry when this happens.
This commit is contained in:
parent
a25d0dc9ec
commit
c19b52f10f
1 changed files with 2 additions and 12 deletions
|
|
@ -1451,18 +1451,8 @@ static void r700SetDepthTarget(context_t *context)
|
||||||
|
|
||||||
if(4 == rrb->cpp)
|
if(4 == rrb->cpp)
|
||||||
{
|
{
|
||||||
switch (GL_CONTEXT(context)->Visual.depthBits)
|
SETfield(r700->DB_DEPTH_INFO.u32All, DEPTH_8_24,
|
||||||
{
|
DB_DEPTH_INFO__FORMAT_shift, DB_DEPTH_INFO__FORMAT_mask);
|
||||||
case 16:
|
|
||||||
case 24:
|
|
||||||
SETfield(r700->DB_DEPTH_INFO.u32All, DEPTH_8_24,
|
|
||||||
DB_DEPTH_INFO__FORMAT_shift, DB_DEPTH_INFO__FORMAT_mask);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
fprintf(stderr, "Error: Unsupported depth %d... exiting\n",
|
|
||||||
GL_CONTEXT(context)->Visual.depthBits);
|
|
||||||
_mesa_exit(-1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue