summaryrefslogtreecommitdiff
path: root/src/i965_post_processing.h
diff options
context:
space:
mode:
authorZhao Halley <halley.zhao@intel.com>2012-07-26 11:27:45 +0300
committerXiang, Haihao <haihao.xiang@intel.com>2012-08-31 04:09:00 -0400
commita1f25ce4a51688d09aba907e11d2dd4aa2e0ccba (patch)
tree9138cc3f015b8d758a25c8d7cc42e832721c5f85 /src/i965_post_processing.h
parent990c1d3d164142253309a6708d478d65c63bdb86 (diff)
downloadlibva-intel-driver-a1f25ce4a51688d09aba907e11d2dd4aa2e0ccba.tar.gz
libva-intel-driver-a1f25ce4a51688d09aba907e11d2dd4aa2e0ccba.tar.bz2
libva-intel-driver-a1f25ce4a51688d09aba907e11d2dd4aa2e0ccba.zip
enable horizontal and vertical mask for bottom/right boundary blocks
- usually it is 0xff/0xffff for common blocks in grf5 - one mask is setup in object_walker when the last group of blocks are met - another mask should setup when the last block (in a group) is met. it will be done in asm code, we make it ready in grf6
Diffstat (limited to 'src/i965_post_processing.h')
-rwxr-xr-xsrc/i965_post_processing.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/i965_post_processing.h b/src/i965_post_processing.h
index 96f6718..1afffc5 100755
--- a/src/i965_post_processing.h
+++ b/src/i965_post_processing.h
@@ -298,6 +298,9 @@ struct pp_inline_parameter
unsigned int block_count_x:8;
/* r5.6 */
+ /* we only support M*1 or 1*N block partitation now.
+ * -- it means asm code only need update this mask from grf6 for the last block
+ */
unsigned int block_horizontal_mask:16;
unsigned int block_vertical_mask:8;
unsigned int number_blocks:8;
@@ -310,8 +313,13 @@ struct pp_inline_parameter
/* AVS r6.0 */
float video_step_delta;
- /* r6.1-r6.7 */
- unsigned int padx[7];
+ /* r6.1 */
+ unsigned int block_horizontal_mask:16;
+ unsigned int block_vertical_mask:8;
+ unsigned int pad:8;
+
+ /* r6.2-r6.7 */
+ unsigned int padx[6];
} grf6;
};
@@ -467,6 +475,9 @@ struct i965_post_processing_context
int (*pp_set_block_parameter)(struct i965_post_processing_context *pp_context, int x, int y);
struct intel_batchbuffer *batch;
+
+ unsigned int block_horizontal_mask:16;
+ unsigned int block_vertical_mask:8;
};
struct i965_proc_context