gallium/targets: Haiku softpipe, perform better framebuffer validation
* Check for back left attachment as well * Set and act on pipe format none Ack'ed by Emil Velikov <emil.l.velikov@gmail.com>
This commit is contained in:
parent
96b45e67d5
commit
86d1aa8531
|
@ -100,8 +100,10 @@ hgl_framebuffer_validate(struct st_context_iface* stctx,
|
||||||
|
|
||||||
switch(statts[i]) {
|
switch(statts[i]) {
|
||||||
case ST_ATTACHMENT_FRONT_LEFT:
|
case ST_ATTACHMENT_FRONT_LEFT:
|
||||||
|
case ST_ATTACHMENT_BACK_LEFT:
|
||||||
format = context->stVisual->color_format;
|
format = context->stVisual->color_format;
|
||||||
bind = PIPE_BIND_RENDER_TARGET;
|
bind = PIPE_BIND_DISPLAY_TARGET
|
||||||
|
| PIPE_BIND_RENDER_TARGET;
|
||||||
break;
|
break;
|
||||||
case ST_ATTACHMENT_DEPTH_STENCIL:
|
case ST_ATTACHMENT_DEPTH_STENCIL:
|
||||||
format = context->stVisual->depth_stencil_format;
|
format = context->stVisual->depth_stencil_format;
|
||||||
|
@ -112,8 +114,11 @@ hgl_framebuffer_validate(struct st_context_iface* stctx,
|
||||||
bind = PIPE_BIND_RENDER_TARGET;
|
bind = PIPE_BIND_RENDER_TARGET;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ERROR("%s: Unexpected attachment type!\n", __func__);
|
format = PIPE_FORMAT_NONE;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (format != PIPE_FORMAT_NONE) {
|
||||||
templat.format = format;
|
templat.format = format;
|
||||||
templat.bind = bind;
|
templat.bind = bind;
|
||||||
|
|
||||||
|
@ -122,6 +127,7 @@ hgl_framebuffer_validate(struct st_context_iface* stctx,
|
||||||
out[i] = context->textures[i];
|
out[i] = context->textures[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue