Re: [Mesa-dev] [PATCH] etnaviv: fix 16bpp clears

2017-09-22 Thread Christian Gmeiner
2017-09-22 11:24 GMT+02:00 Lucas Stach : > util_pack_color may leave undefined values in the upper half of the packed > integer. As our hardware needs the upper 16 bits to mirror the lower 16bits, > this breaks clears of those formats if the undefined values aren't masked off. > > I've only observe

Re: [Mesa-dev] [PATCH] etnaviv: fix 16bpp clears

2017-09-22 Thread Wladimir J. van der Laan
On Fri, Sep 22, 2017 at 11:24:08AM +0200, Lucas Stach wrote: > util_pack_color may leave undefined values in the upper half of the packed > integer. As our hardware needs the upper 16 bits to mirror the lower 16bits, > this breaks clears of those formats if the undefined values aren't masked off. >

[Mesa-dev] [PATCH] etnaviv: fix 16bpp clears

2017-09-22 Thread Lucas Stach
util_pack_color may leave undefined values in the upper half of the packed integer. As our hardware needs the upper 16 bits to mirror the lower 16bits, this breaks clears of those formats if the undefined values aren't masked off. I've only observed the issue with R5G6B5_UNORM surfaces, other 16bp