i965/gen8+: Add aux buffer alignment assertions
authorBen Widawsky <benjamin.widawsky@intel.com>
Thu, 14 May 2015 16:28:37 +0000 (09:28 -0700)
committerBen Widawsky <benjamin.widawsky@intel.com>
Sat, 13 Jun 2015 01:09:49 +0000 (18:09 -0700)
commit935f1f60da71df07aa45a3da92fa764a1830e0fb
tree78be56fafc898522a2160f023c9e4f0025844052
parenta2421623db9b900d2ab0026539e8f7f6294475ea
i965/gen8+: Add aux buffer alignment assertions

This helped find the incorrect HALIGN values from the previous patches.

v2: Add PRM references for assertions (Chad)

v3: Remove duplicated part of commit message, assert num_samples > 1, instead of
num_samples > 0. (Chad)

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Chad Versace <chad.versace@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/gen8_surface_state.c