mesa: Refactor bounding-box calculation out of _mesa_update_draw_buffer_bounds
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 8 Jan 2014 20:10:41 +0000 (12:10 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 20 Jan 2014 19:32:01 +0000 (11:32 -0800)
commita2b946cb3516eb3fd475e6ed509b3f09eb36d4b6
tree8055daef2409263148870d626a2d3d46f935eaf7
parentd989c4b13429c5375303828ec5a20daf9f127753
mesa: Refactor bounding-box calculation out of _mesa_update_draw_buffer_bounds

Drivers that currently use _Xmin and friends to set their scissor
rectangle will need to use this code directly once they are updated for
GL_ARB_viewport_array.

v2: Use different bit-test idiom and fix mixed tabs and spaces.  Both
were suggested by Ken.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/framebuffer.c
src/mesa/main/framebuffer.h