diff options
author | Anuj Phogat <anuj.phogat@gmail.com> | 2015-04-14 22:06:47 -0700 |
---|---|---|
committer | Anuj Phogat <anuj.phogat@gmail.com> | 2015-06-08 13:57:11 -0700 |
commit | 126078faca7a9da0f825d3ad07ce9b1183737240 (patch) | |
tree | 2a6a7fb40240388ae0950f97c7bfe22cde44ea2f /src/mesa/drivers/dri/i965/intel_mipmap_tree.h | |
parent | ef6b9985ea6b60a562daed3a9ed3be0f91f21e01 (diff) | |
download | external_mesa3d-126078faca7a9da0f825d3ad07ce9b1183737240.zip external_mesa3d-126078faca7a9da0f825d3ad07ce9b1183737240.tar.gz external_mesa3d-126078faca7a9da0f825d3ad07ce9b1183737240.tar.bz2 |
i965/gen9: Set tiled resource mode for the miptree
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_mipmap_tree.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h index 0db6b44..20bed53 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h @@ -330,6 +330,13 @@ struct intel_miptree_aux_buffer struct intel_mipmap_tree *mt; /**< hiz miptree used with Gen6 */ }; +/* Tile resource modes */ +enum intel_miptree_tr_mode { + INTEL_MIPTREE_TRMODE_NONE, + INTEL_MIPTREE_TRMODE_YF, + INTEL_MIPTREE_TRMODE_YS +}; + struct intel_mipmap_tree { /** Buffer object containing the pixel data. */ @@ -338,6 +345,7 @@ struct intel_mipmap_tree uint32_t pitch; /**< pitch in bytes. */ uint32_t tiling; /**< One of the I915_TILING_* flags */ + enum intel_miptree_tr_mode tr_mode; /* Effectively the key: */ |