mesa/st: Use _mesa_geometric_ functions appropriately
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>
Fri, 1 Jan 2016 18:55:49 +0000 (05:55 +1100)
committerDave Airlie <airlied@redhat.com>
Thu, 7 Apr 2016 01:56:35 +0000 (11:56 +1000)
commit85f79f0c7567e47ca4c5b204ddf7891fd12e3e85
tree06aade431312df70b26d6f9f3ca13e2ae7ef6bb6
parentb40375a21cd8c0336aa9c3fcbabe02c27f9d1471
mesa/st: Use _mesa_geometric_ functions appropriately

Change references to gl_framebuffer::Width, Height, MaxNumLayers
and Visual::samples to use the _mesa_geometric_ convenience functions
for those places where the geometry of the gl_framebuffer is needed.
This is in contrast to the geometry of the intersection of the
attachments of the gl_framebuffer.

This patch paves the way to enable GL_ARB_framebuffer_no_attachements
for all gallium drivers.

V.2:
 Remove itermeditate variable state.

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_atom_rasterizer.c
src/mesa/state_tracker/st_atom_scissor.c
src/mesa/state_tracker/st_cb_drawtex.c
src/mesa/state_tracker/st_cb_msaa.c