Re: [Mesa-dev] [PATCH v2] mesa: Fix glDrawBuffer/glDrawBuffers logic in _mesa_drawbuffer.

2014-08-08 Thread Brian Paul
I've come up with a simpler solution. Patch coming soon. -Brian On 07/25/2014 04:00 AM, Popov, Pavel E wrote: Hi Brian, Could you commit the updated patch if it's ok? Regards, Pavel -Original Message- From: Popov, Pavel E Sent: Wednesday, July 23, 2014 4:58 PM To: mesa-dev@lists.fre

Re: [Mesa-dev] [PATCH v2] mesa: Fix glDrawBuffer/glDrawBuffers logic in _mesa_drawbuffer.

2014-07-25 Thread Popov, Pavel E
Hi Brian, Could you commit the updated patch if it's ok? Regards, Pavel -Original Message- From: Popov, Pavel E Sent: Wednesday, July 23, 2014 4:58 PM To: mesa-dev@lists.freedesktop.org Cc: Popov, Pavel E Subject: [PATCH v2] mesa: Fix glDrawBuffer/glDrawBuffers logic in _mesa_drawbuffe

[Mesa-dev] [PATCH v2] mesa: Fix glDrawBuffer/glDrawBuffers logic in _mesa_drawbuffer.

2014-07-23 Thread Pavel Popov
Piglit test 'gl30basic' fails on Debug Mesa with the assert: 'main/buffers.c:520: _mesa_drawbuffers: Assertion `__builtin_popcount(destMask[buf]) == 1' failed.'. According to spec (OpenGL 4.0 specification, pages 254-255) we have a different bits set for one buffer and for multiple buffers.