mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 06:00:10 +01:00
intel: Use the GLSL-based meta clear when available.
Improves firefox-talos-gfx performance under GL when 3D clears are enabled: [ 0] gl-before firefox-talos-gfx 20.193 20.251 0.27% 3/3 [ 0] gl-after firefox-talos-gfx 18.013 18.040 0.19% 3/3
This commit is contained in:
parent
eee570290a
commit
540e66b3be
1 changed files with 4 additions and 1 deletions
|
|
@ -188,7 +188,10 @@ intelClear(struct gl_context *ctx, GLbitfield mask)
|
|||
|
||||
if (tri_mask) {
|
||||
debug_mask("tri", tri_mask);
|
||||
_mesa_meta_Clear(&intel->ctx, tri_mask);
|
||||
if (ctx->Extensions.ARB_fragment_shader)
|
||||
_mesa_meta_glsl_Clear(&intel->ctx, tri_mask);
|
||||
else
|
||||
_mesa_meta_Clear(&intel->ctx, tri_mask);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue