mesa/src
Alejandro Piñeiro d54bc7e01f main/buffers: update error handling on DrawBuffers for 4.5
Before 4.5, GL_BACK was not allowed as a value of bufs. Since 4.5 it
is allowed under some circumstances:

From the OpenGL 4.5 specification, Section 17.4.1 "Selecting Buffers
for Writing", page 493 (page 515 of the PDF):
 "An INVALID_ENUM error is generated if any value in bufs is FRONT,
  LEFT, RIGHT, or FRONT_AND_BACK . This restriction applies to both
  the de- fault framebuffer and framebuffer objects, and exists
  because these constants may themselves refer to multiple buffers, as
  shown in table 17.4."

And on page 492 (page 514 of the PDF):
 "If the default framebuffer is affected, then each of the constants
  must be one of the values listed in table 17.6 or the special value
  BACK . When BACK is used, n must be 1 and color values are written
  into the left buffer for single-buffered contexts, or into the back
  left buffer for double-buffered contexts."

This patch keeps the same behaviour if OpenGL version is < 4. We
assume that for 4.x this is the intended behaviour, so a fix, but for
3.x the intended behaviour is the already in place.

Part of the fix for:
GL45-CTS.direct_state_access.framebuffers_draw_read_buffers_errors

v2: remove forgot printf
v3: remove spaces before commas on spec quote, split line too
    long (Anuj)

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
2017-01-12 08:21:03 -02:00
..
amd radv: fix multi-viewport emission 2017-01-11 09:08:51 +01:00
compiler spirv: fix typo in warning message 2017-01-12 08:18:00 +01:00
egl egl/dri2: add image_loader_extension back into loader extensions for wayland 2017-01-11 15:58:14 +00:00
gallium radeonsi: num_records is in units of stride for swizzled buffers even on VI 2017-01-12 11:02:56 +01:00
gbm gbm: request correct version of the DRI2_FENCE extension 2016-11-22 15:56:44 +00:00
getopt Introduce .editorconfig 2016-08-31 17:06:54 -07:00
glx dri3: Fix MakeCurrent without a default framebuffer 2017-01-05 20:52:01 +01:00
gtest Introduce .editorconfig 2016-08-31 17:06:54 -07:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel anv/image: Disable HiZ for depth buffer arrays 2017-01-11 17:35:59 -08:00
loader loader: automake: whitespace cleanup 2016-11-21 14:46:40 +00:00
mapi glapi: add missing INTEL_conservative_rasterization 2016-12-13 16:27:56 +00:00
mesa main/buffers: update error handling on DrawBuffers for 4.5 2017-01-12 08:21:03 -02:00
util util: fix list_is_singular() 2017-01-12 13:58:32 +11:00
vulkan/wsi vulkan/wsi/x11: don't crash on null wsi x11 connection 2016-12-22 14:09:46 -08:00
Makefile.am amd: flatten amd/common makefile structure 2016-11-15 20:04:37 +00:00
SConscript scons: put the generated git_sha1.h file in top-level src/ directory 2016-06-17 10:33:00 -06:00