OSDN Git Service

i965: Push miptree tiling request into flags
authorBen Widawsky <benjamin.widawsky@intel.com>
Tue, 14 Jul 2015 16:56:09 +0000 (09:56 -0700)
committerBen Widawsky <benjamin.widawsky@intel.com>
Fri, 17 Jul 2015 00:02:35 +0000 (17:02 -0700)
commit3a31876600cb5c4d90c998ecb5635c602eeb2bd1
tree0ef7a45ca9ba01f0eae221995e3c8cfd15f1b980
parentef42352ff4e1feeea7338db73f540038c6755472
i965: Push miptree tiling request into flags

With the last few patches a way was provided to influence lower layer miptree
layout and allocation decisions via flags (replacing bools). For simplicity, I
chose not to touch the tiling requests because the change was slightly less
mechanical than replacing the bools.

The goal is to organize the code so we can continue to add new parameters and
tiling types while minimizing risk to the existing code, and not having to
constantly add new function parameters.

v2: Rebased on Anuj's recent Yf/Ys changes
Fix non-msrt MCS allocation (was only happening in gen8 case before)

v3: small fix in assertion requested by Chad

v4: Use parens to get the order right from v3.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_tex_layout.c
src/mesa/drivers/dri/i965/intel_fbo.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.h
src/mesa/drivers/dri/i965/intel_tex.c
src/mesa/drivers/dri/i965/intel_tex_image.c
src/mesa/drivers/dri/i965/intel_tex_validate.c