summaryrefslogtreecommitdiff
path: root/src/i965_gpe_utils.h
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2015-04-08 15:42:17 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2016-11-18 16:26:32 +0800
commit9fbaff9aea9397a4db95b118406b49b2a09400cc (patch)
tree7cc63a4cbf0110110d12bd8d8564e68672dbc452 /src/i965_gpe_utils.h
parent2a0dc3ec81aeb1a6390f9794d5f4d642c1307cfb (diff)
downloadlibva-intel-driver-9fbaff9aea9397a4db95b118406b49b2a09400cc.tar.gz
Move all curbe related settings to the inner structure in i965_gpe_context
To avoid confusion between curbe.length and curbe_size, this patch uses curbe.length only. curbe.bo is always set even if curbe is a part of the dynamic state buffer, hence we can use curbe related settings no matter it is a part of the dynamic state buffer or not. Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
Diffstat (limited to 'src/i965_gpe_utils.h')
-rw-r--r--src/i965_gpe_utils.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/i965_gpe_utils.h b/src/i965_gpe_utils.h
index 0cbef434..92123fe2 100644
--- a/src/i965_gpe_utils.h
+++ b/src/i965_gpe_utils.h
@@ -92,6 +92,7 @@ struct i965_gpe_context
struct {
dri_bo *bo;
unsigned int length; /* in bytes */
+ unsigned int offset;
} curbe;
struct {
@@ -168,8 +169,6 @@ struct i965_gpe_context
int sampler_size;
unsigned int idrt_offset;
int idrt_size;
- unsigned int curbe_offset;
- int curbe_size;
};
struct gpe_mi_flush_dw_parameter