[Mesa-dev] [PATCH 01/14] intel: Add flag intel_context.has_hiz
chad at chad-versace.us
chad at chad-versace.us
Wed May 4 13:33:45 PDT 2011
From: Chad Versace <chad.versace at intel.com>
Currently, it is always set it to false. Once the HiZ implementation is
complete, it needs to be enabled on Gen >= 5.
Even though HiZ support is present only on gen >= 5, the field belongs
in intel_context, not brw_context, because the functions that interact
with DRI2 and choose buffer formats are passed an intel_context.
Signed-off-by: Chad Versace <chad.versace at intel.com>
---
src/mesa/drivers/dri/intel/intel_context.c | 2 ++
src/mesa/drivers/dri/intel/intel_context.h | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c
index acdf35f..b1907f5 100644
--- a/src/mesa/drivers/dri/intel/intel_context.c
+++ b/src/mesa/drivers/dri/intel/intel_context.c
@@ -656,9 +656,11 @@ intelInitContext(struct intel_context *intel,
if (IS_GEN6(intel->intelScreen->deviceID)) {
intel->needs_ff_sync = GL_TRUE;
intel->has_luminance_srgb = GL_TRUE;
+ /* FINISHME: On Gen6, intel->has_hiz = GL_TRUE; */
} else if (IS_GEN5(intel->intelScreen->deviceID)) {
intel->needs_ff_sync = GL_TRUE;
intel->has_luminance_srgb = GL_TRUE;
+ /* FINISHME: On Gen5, intel->has_hiz = GL_TRUE; */
} else if (IS_965(intel->intelScreen->deviceID)) {
if (IS_G4X(intel->intelScreen->deviceID)) {
intel->has_luminance_srgb = GL_TRUE;
diff --git a/src/mesa/drivers/dri/intel/intel_context.h b/src/mesa/drivers/dri/intel/intel_context.h
index d3a8a65..629279f 100644
--- a/src/mesa/drivers/dri/intel/intel_context.h
+++ b/src/mesa/drivers/dri/intel/intel_context.h
@@ -166,6 +166,7 @@ struct intel_context
GLboolean is_945;
GLboolean has_luminance_srgb;
GLboolean has_xrgb_textures;
+ GLboolean has_hiz;
int urb_size;
--
1.7.5
More information about the mesa-dev
mailing list