OSDN Git Service

i965/blorp: Only do offset hacks for fake W-tiling and IMS
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 27 Jun 2016 18:54:14 +0000 (11:54 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 17 Aug 2016 21:46:22 +0000 (14:46 -0700)
commit96fa98c18e54a31622a0dea5516f7db7642ca866
treeb74f449eedd7a9d2fbc660b97ff61f73b5d674d7
parent9f9abc82149839159a5fe5412ad09daa4f80442d
i965/blorp: Only do offset hacks for fake W-tiling and IMS

Since the dawn of time, blorp has used offsets directly to get at different
mip levels and array slices of surfaces.  This isn't really necessary since
we can just use the base level/layer provided in the surface state.  While
it may have simplified blorp's original design, we haven't been using the
blorp path for surface state on gen8 thanks to render compression and
there's really no good need for it most of the time.  This commit restricts
such surface munging to the cases of fake W-tiling and fake interleaved
multisampling.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_blorp.c
src/mesa/drivers/dri/i965/brw_blorp.h
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp