mesa/src
Edward O'Callaghan 0b7075fed7 gallium: Put no.of {samples,layers} into pipe_framebuffer_state
Here we store the number of samples and layers directly in the
pipe_framebuffer_state so that in the case of
ARB_framebuffer_no_attachment we may make use of them directly.

Further, we adjust various gallium/auxiliary helper functions
accordingly.

V2:
  Convert branches in util_framebuffer_get_num_layers() and
  util_framebuffer_get_num_samples() to their canonical form.

V3:
  'git stash pop' the typo fix of 'cbufs' which should be
  'nr_cbufs' that was missing in V2, woops! Thanks Marek for
  pointing this out yet again.

V4:
  Squash in the following patch:

  'gallium/util: Ensure util_framebuffer_get_num_samples() is valid'

   Upon context creation, internal driver structures are malloc()'ed
   and memset() to zero them. This results in a invalid number of
   samples 'by default'. Handle this in the simplest way to avoid
   elaborate and probably equally sub-optimial solutions.

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2016-04-07 12:03:58 +10:00
..
compiler glsl: use has_shader_storage_buffer_objects helper 2016-04-05 20:27:32 -04:00
egl egl: add EGL_KHR_reusable_sync to egl_dri 2016-04-05 15:24:57 +02:00
gallium gallium: Put no.of {samples,layers} into pipe_framebuffer_state 2016-04-07 12:03:58 +10:00
gbm gbm: do not wrap header inclusion in extern "C" 2016-03-09 17:16:50 +00:00
getopt getopt: Make code more portable. 2011-01-12 16:54:21 +00:00
glx glx: update to updated version of EXT_create_context_es2_profile 2016-02-03 15:44:51 -05:00
gtest mesa: Enable subdir-objects globally. 2015-06-26 12:55:25 +01:00
hgl glapi/hgl: Drop extern "C" as it was added to glapi 2015-05-13 15:26:29 -04:00
loader dri: add backbuffer use flag 2016-03-09 15:02:25 +01:00
mapi mesa: expose EXT_base_instance in ES3 contexts 2016-04-03 20:40:55 -04:00
mesa mesa/st: Set _NumSamples in update_framebuffer_state() 2016-04-07 12:02:06 +10:00
util util/bitset: Allow iterating over const bitsets 2016-03-24 15:20:44 -07:00
Makefile.am glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
SConscript glsl: move to compiler/ 2016-01-26 16:08:33 +00:00