summaryrefslogtreecommitdiff
path: root/src/i965_device_info.c
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2014-05-09 16:16:05 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2014-05-26 12:17:17 +0800
commite437ae5c33ea6547f88cf2bd1b34159fce95b988 (patch)
tree126cf88387eff3cf36d5a90c1789cf5292ea99a1 /src/i965_device_info.c
parenta7343f9148198f25b2c10bf610c95e6ebd4fa189 (diff)
Limit the minimum pitch for linear surface
pitch must be 64 at least for linear surface for most functions on IVB/HSW/BDW such VEBOX, Data port media read/write https://bugs.freedesktop.org/show_bug.cgi?id=72522 Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> (cherry picked from commit 57db5c2524f4e3cb6ae2301bddfdf1c40cdbb626)
Diffstat (limited to 'src/i965_device_info.c')
-rw-r--r--src/i965_device_info.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/i965_device_info.c b/src/i965_device_info.c
index f040592..f7ce226 100644
--- a/src/i965_device_info.c
+++ b/src/i965_device_info.c
@@ -40,6 +40,8 @@ static const struct hw_codec_info g4x_hw_codec_info = {
.max_width = 2048,
.max_height = 2048,
+ .min_linear_wpitch = 16,
+ .min_linear_hpitch = 16,
.has_mpeg2_decoding = 1,
@@ -58,6 +60,8 @@ static const struct hw_codec_info ilk_hw_codec_info = {
.max_width = 2048,
.max_height = 2048,
+ .min_linear_wpitch = 16,
+ .min_linear_hpitch = 16,
.has_mpeg2_decoding = 1,
.has_h264_decoding = 1,
@@ -78,6 +82,8 @@ static const struct hw_codec_info snb_hw_codec_info = {
.max_width = 2048,
.max_height = 2048,
+ .min_linear_wpitch = 16,
+ .min_linear_hpitch = 16,
.has_mpeg2_decoding = 1,
.has_h264_decoding = 1,
@@ -106,6 +112,8 @@ static const struct hw_codec_info ivb_hw_codec_info = {
.max_width = 4096,
.max_height = 4096,
+ .min_linear_wpitch = 64,
+ .min_linear_hpitch = 16,
.has_mpeg2_decoding = 1,
.has_mpeg2_encoding = 1,
@@ -138,6 +146,8 @@ static const struct hw_codec_info hsw_hw_codec_info = {
.max_width = 4096,
.max_height = 4096,
+ .min_linear_wpitch = 64,
+ .min_linear_hpitch = 16,
.has_mpeg2_decoding = 1,
.has_mpeg2_encoding = 1,
@@ -174,6 +184,8 @@ static const struct hw_codec_info bdw_hw_codec_info = {
.max_width = 4096,
.max_height = 4096,
+ .min_linear_wpitch = 64,
+ .min_linear_hpitch = 16,
.has_mpeg2_decoding = 1,
.has_mpeg2_encoding = 1,