mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 14:08:05 +02:00
etnaviv: rs: add support for 64bpp clears
Starting with HALTI2 the RS supports 64bpp clears. Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Philipp Zabel <philipp.zabel@gmail.com> Reviewed-by: Jonathan Marek <jonathan@marek.ca>
This commit is contained in:
parent
7492685b1b
commit
f52b9218ff
1 changed files with 6 additions and 8 deletions
|
|
@ -262,15 +262,13 @@ etna_rs_gen_clear_surface(struct etna_context *ctx, struct etna_surface *surf,
|
|||
case 32:
|
||||
format = RS_FORMAT_A8R8G8B8;
|
||||
break;
|
||||
default:
|
||||
format = ETNA_NO_MATCH;
|
||||
case 64:
|
||||
assert(ctx->specs.halti >= 2);
|
||||
format = RS_FORMAT_64BPP_CLEAR;
|
||||
break;
|
||||
default:
|
||||
unreachable("bpp not supported for clear by RS");
|
||||
break;
|
||||
}
|
||||
|
||||
if (format == ETNA_NO_MATCH) {
|
||||
BUG("etna_rs_gen_clear_surface: Unhandled clear fmt %s", util_format_name(surf->base.format));
|
||||
format = RS_FORMAT_A8R8G8B8;
|
||||
assert(0);
|
||||
}
|
||||
|
||||
/* use tiled clear if width is multiple of 16 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue