mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
r600g: flush depth texture before a blit from it.
If we are going to blit from a depth texture we need to flush it before we blit from it. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
5026841d5e
commit
4b49fcbb9a
1 changed files with 6 additions and 0 deletions
|
|
@ -208,8 +208,14 @@ static void r600_resource_copy_region(struct pipe_context *ctx,
|
|||
unsigned src_level,
|
||||
const struct pipe_box *src_box)
|
||||
{
|
||||
struct r600_resource_texture *rsrc = (struct r600_resource_texture*)src;
|
||||
|
||||
if (rsrc->depth && !rsrc->is_flushing_texture)
|
||||
r600_texture_depth_flush(ctx, src);
|
||||
|
||||
r600_hw_copy_region(ctx, dst, dst_level, dstx, dsty, dstz,
|
||||
src, src_level, src_box);
|
||||
|
||||
}
|
||||
|
||||
void r600_init_blit_functions(struct r600_pipe_context *rctx)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue