OSDN Git Service

anv/cmd_buffer: Remove the 1-D case from the HiZ QPitch calculation
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 26 Nov 2016 06:09:30 +0000 (22:09 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 29 Nov 2016 04:17:29 +0000 (20:17 -0800)
commitf469235a6e0c239166ba803e121994063b47ddd3
tree92d78107ea724c70224907eac83975cf95594260
parentd4ef87c1bb4290293148cbd6cb782764df38f8f4
anv/cmd_buffer: Remove the 1-D case from the HiZ QPitch calculation

The 1-D special case doesn't actually apply to depth or HiZ.  I discovered
this while converting BLORP over to genxml and ISL.  The reason is that the
1-D special case only applies to the new Sky Lake 1-D layout which is only
used for LINEAR 1-D images.  For tiled 1-D images, such as depth buffers,
the old gen4 2-D layout is used and the QPitch should be in rows.

Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/genX_cmd_buffer.c