mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
etnaviv: rs: Support 8bpp for clears
Needs a GPU with S8 support. Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37014>
This commit is contained in:
parent
750c2fab76
commit
fda092729d
1 changed files with 4 additions and 0 deletions
|
|
@ -284,6 +284,10 @@ etna_rs_gen_clear_cmd(struct etna_context *ctx,
|
|||
uint32_t format;
|
||||
|
||||
switch (util_format_get_blocksizebits(psurf->format)) {
|
||||
case 8:
|
||||
assert(VIV_FEATURE(screen, ETNA_FEATURE_S8));
|
||||
format = RS_FORMAT_S8;
|
||||
break;
|
||||
case 16:
|
||||
format = RS_FORMAT_A4R4G4B4;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue