mesa/src/gallium/include/pipe
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
..
p_compiler.h Remove Sun CC specific code. 2015-12-02 07:51:04 +00:00
p_config.h Remove Sun CC specific code. 2015-12-02 07:51:04 +00:00
p_context.h gallium/p_context.h: Make comment more readable 2016-03-27 18:03:04 +02:00
p_defines.h gallium: Add PIPE_CAP_FRAMEBUFFER_NO_ATTACHMENT 2016-04-07 11:56:44 +10:00
p_format.h gallium: do not wrap header inclusion in 2016-03-09 17:21:39 +00:00
p_screen.h gallium: distinguish between shader IR in get_compute_param 2016-04-02 01:51:13 +02:00
p_shader_tokens.h gallium: add threads per block TGSI property 2016-04-02 01:50:59 +02:00
p_state.h gallium: Put no.of {samples,layers} into pipe_framebuffer_state 2016-04-07 12:03:58 +10:00
p_video_codec.h gallium: do not wrap header inclusion in 2016-03-09 17:21:39 +00:00
p_video_enums.h gallium: do not wrap header inclusion in 2016-03-09 17:21:39 +00:00
p_video_state.h vl: add RefPicList defines for VAAPI HEVC decode 2015-10-27 19:09:55 -04:00