mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
winsys/gdi: Handle 4444 and 1010102 texture formats
Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Reviewed-by: Neha Bhende <bhenden@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25979>
This commit is contained in:
parent
87c5589605
commit
823d40db4a
1 changed files with 10 additions and 0 deletions
|
|
@ -167,6 +167,16 @@ gdi_sw_displaytarget_create(struct sw_winsys *winsys,
|
|||
gdt->bmi.bV5RedMask = 0xF800;
|
||||
gdt->bmi.bV5GreenMask = 0x07E0;
|
||||
gdt->bmi.bV5BlueMask = 0x001F;
|
||||
} else if (format == PIPE_FORMAT_B4G4R4A4_UNORM) {
|
||||
gdt->bmi.bV5Compression = BI_BITFIELDS;
|
||||
gdt->bmi.bV5RedMask = 0x0F00;
|
||||
gdt->bmi.bV5GreenMask = 0x00F0;
|
||||
gdt->bmi.bV5BlueMask = 0x000F;
|
||||
} else if (format == PIPE_FORMAT_R10G10B10A2_UNORM) {
|
||||
gdt->bmi.bV5Compression = BI_BITFIELDS;
|
||||
gdt->bmi.bV5RedMask = 0x000003FF;
|
||||
gdt->bmi.bV5GreenMask = 0x000FFC00;
|
||||
gdt->bmi.bV5BlueMask = 0x3FF00000;
|
||||
}
|
||||
|
||||
*stride = gdt->stride;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue