swr: [rasterizer core] pipe renderTargetArrayIndex through to clears
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 17 Nov 2016 02:25:12 +0000 (21:25 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 24 Nov 2016 01:33:50 +0000 (20:33 -0500)
commit1a80ec0cd1f3f66a33fc708e0112c88f4fba122d
tree967af42f2d040c6edb68b818e63f77af805f7f9e
parentcec515999ccf224a967f00c4bc2c3e47d782d65e
swr: [rasterizer core] pipe renderTargetArrayIndex through to clears

Currently clears only operate on the 0th array index (ignoring surface
layout parameters). Instead normalize to take a RTAI like all the
load/store tile logic does, and use ComputeSurfaceAddress to properly
take the surface state's lod/array index into account.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/rasterizer/core/api.cpp
src/gallium/drivers/swr/rasterizer/core/api.h
src/gallium/drivers/swr/rasterizer/core/backend.cpp
src/gallium/drivers/swr/rasterizer/core/context.h
src/gallium/drivers/swr/rasterizer/memory/ClearTile.cpp
src/gallium/drivers/swr/swr_clear.cpp
src/gallium/drivers/swr/swr_memory.h