[Mesa-dev] [PATCH] svga: Add support for 16-bit per channel RGBA
John Kåre Alsaker
john.kare.alsaker at gmail.com
Wed Oct 10 18:35:45 PDT 2012
It just fixes posterization when rendering in linear space. It's also
required for having 64 bpp Wayland clients.
On Thu, Oct 11, 2012 at 2:18 AM, Brian Paul <brian.e.paul at gmail.com> wrote:
> On Mon, Oct 8, 2012 at 4:50 PM, John Kåre Alsaker
> <john.kare.alsaker at gmail.com> wrote:
>> ---
>> src/gallium/drivers/svga/svga_format.c | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/src/gallium/drivers/svga/svga_format.c b/src/gallium/drivers/svga/svga_format.c
>> index 5176106..5a153a8 100644
>> --- a/src/gallium/drivers/svga/svga_format.c
>> +++ b/src/gallium/drivers/svga/svga_format.c
>> @@ -66,6 +66,9 @@ svga_translate_format(struct svga_screen *ss,
>> case PIPE_FORMAT_B4G4R4A4_UNORM:
>> return SVGA3D_A4R4G4B4;
>>
>> + case PIPE_FORMAT_R16G16B16A16_UNORM:
>> + return SVGA3D_A16B16G16R16;
>> +
>> case PIPE_FORMAT_Z16_UNORM:
>> return bind & PIPE_BIND_SAMPLER_VIEW ? ss->depth.z16 : SVGA3D_Z_D16;
>> case PIPE_FORMAT_S8_UINT_Z24_UNORM:
>
> Does this fix a particular issue? In any case it looks fine. I can
> commit this for you.
>
> -Brian
More information about the mesa-dev
mailing list