util: new util_fill_box helper
authorRoland Scheidegger <sroland@vmware.com>
Wed, 12 Jun 2013 22:40:34 +0000 (00:40 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 12 Jun 2013 22:41:43 +0000 (00:41 +0200)
commit4cce4efaa38e95c121343565de5e517345d6a9dd
treedab5bd208a95271819e8e5f4f7adc05f7ac81c14
parent957c040eb86495da2a693c831e13342a81ac1a2e
util: new util_fill_box helper

Use new util_fill_box helper for util_clear_render_target.
(Also fix off-by-one map error.)

v2: handle non-zero z correctly in new helper

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/util/u_surface.c
src/gallium/auxiliary/util/u_surface.h
src/gallium/drivers/llvmpipe/lp_rast.c