gallium: Obtain ARB_framebuffer_no_attachment constants
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>
Wed, 17 Feb 2016 10:01:57 +0000 (21:01 +1100)
committerDave Airlie <airlied@redhat.com>
Thu, 7 Apr 2016 01:56:44 +0000 (11:56 +1000)
commit2016e9ffda26aac6a65c363f38afc047b72d3e83
treea1bbc8a3f091708d341dfc5ab909ab34ce50e627
parent4bc9130fba2f815cb910536d3d3a253a8c3ed0b9
gallium: Obtain ARB_framebuffer_no_attachment constants

Set default values for the constants required in
ARB_framebuffer_no_attachments and obtained the number
of layers from ``PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS``.

We also obtain the MaxFramebufferSamples value using
a query back to the driver for PIPE_FORMAT_NONE.

V.1:
 Merge if branch predicates into one branch.
 Move const init into st_init_limits()

[airlied: whitespace fixup]
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_extensions.c