mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
etnaviv: blt: Convert assert to real if
etna_try_blt_blit(..) returns if it is possible to do the blit in hardware or not. When building mesa in debug mode this assert(..) is hit many times. Fixes the following piglits on GC7000L: - spec@!opengl 1.0@gl-1.0-scissor-copypixels - spec@nv_conditional_render@copypixels - spec@!opengl 1.1@copypixels-draw-sync - spec@!opengl 1.1@copypixels-sync - spec@!opengl 1.1@depthstencil-default_fb-blit - spec@!opengl 1.1@draw-copypixels-sync - spec@!opengl 1.1@gl-1.1-xor-copypixels Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com> Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31581>
This commit is contained in:
parent
4d1971f17f
commit
3ae3425c5d
1 changed files with 3 additions and 1 deletions
|
|
@ -478,7 +478,9 @@ etna_try_blt_blit(struct pipe_context *pctx,
|
|||
* we can't use inplace resolve path with compression
|
||||
*/
|
||||
if (src == dst) {
|
||||
assert(!memcmp(&blit_info->src, &blit_info->dst, sizeof(blit_info->src)));
|
||||
if (memcmp(&blit_info->src, &blit_info->dst, sizeof(blit_info->src)))
|
||||
return false;
|
||||
|
||||
if (!etna_resource_level_ts_valid(src_lev)) /* No TS, no worries */
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue