mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 19:30:11 +01:00
radeon: don't attempt to use alternate blit formats for depth buffers
noticed by fredrikh on IRC.
This commit is contained in:
parent
e1762fb870
commit
ffd625d4aa
1 changed files with 4 additions and 0 deletions
|
|
@ -93,6 +93,10 @@ do_copy_texsubimage(GLcontext *ctx,
|
|||
src_bpp = _mesa_get_format_bytes(src_mesaformat);
|
||||
dst_bpp = _mesa_get_format_bytes(dst_mesaformat);
|
||||
if (!radeon->vtbl.check_blit(dst_mesaformat)) {
|
||||
/* depth formats tend to be special */
|
||||
if (_mesa_get_format_bits(dst_mesaformat, GL_DEPTH_BITS) > 0)
|
||||
return GL_FALSE;
|
||||
|
||||
if (src_bpp != dst_bpp)
|
||||
return GL_FALSE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue