video: tegra: dc: minimum window size is 1x1
Jon Mayo [Fri, 21 Dec 2012 01:32:05 +0000 (17:32 -0800)]
Use 1x1 as the minimum window size.

Bug 1193195
Bug 1221438

Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/173302
(cherry picked from commit 3f160560b48fdf501547b9fc1f7c5bf8bd5e32af)
Change-Id: Ib6039cd385f57f10727805333d5f1cb05e0b783b
Reviewed-on: http://git-master/r/192919
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

drivers/video/tegra/dc/dc_config.c

index aae90fd..aaa62b0 100644 (file)
@@ -23,7 +23,7 @@
 static struct tegra_dc_feature_entry t20_feature_entries_a[] = {
        { 0, TEGRA_DC_FEATURE_FORMATS, {TEGRA_WIN_FMT_WIN_A,} },
        { 0, TEGRA_DC_FEATURE_BLEND_TYPE, {1,} },
-       { 0, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 16, 4095, 16,} },
+       { 0, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 1, 4095, 1,} },
        { 0, TEGRA_DC_FEATURE_MAXIMUM_SCALE, {2, 2, 2, 2,} },
        { 0, TEGRA_DC_FEATURE_FILTER_TYPE, {0, 0,} },
        { 0, TEGRA_DC_FEATURE_LAYOUT_TYPE, {1, 1,} },
@@ -32,7 +32,7 @@ static struct tegra_dc_feature_entry t20_feature_entries_a[] = {
        { 1, TEGRA_DC_FEATURE_FORMATS, {TEGRA_WIN_FMT_WIN_B,} },
        { 1, TEGRA_DC_FEATURE_PREFERRED_FORMATS, {TEGRA_WIN_PREF_FMT_WIN_B,} },
        { 1, TEGRA_DC_FEATURE_BLEND_TYPE, {1,} },
-       { 1, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 16, 4095, 16,} },
+       { 1, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 1, 4095, 1,} },
        { 1, TEGRA_DC_FEATURE_MAXIMUM_SCALE, {2, 2, 2, 2,} },
        { 1, TEGRA_DC_FEATURE_FILTER_TYPE, {1, 1,} },
        { 1, TEGRA_DC_FEATURE_LAYOUT_TYPE, {1, 1,} },
@@ -40,7 +40,7 @@ static struct tegra_dc_feature_entry t20_feature_entries_a[] = {
 
        { 2, TEGRA_DC_FEATURE_FORMATS, {TEGRA_WIN_FMT_WIN_C,} },
        { 2, TEGRA_DC_FEATURE_BLEND_TYPE, {1,} },
-       { 2, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 16, 4095, 16,} },
+       { 2, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 1, 4095, 1,} },
        { 2, TEGRA_DC_FEATURE_MAXIMUM_SCALE, {2, 2, 2, 2,} },
        { 2, TEGRA_DC_FEATURE_FILTER_TYPE, {0, 1,} },
        { 2, TEGRA_DC_FEATURE_LAYOUT_TYPE, {1, 1,} },
@@ -50,7 +50,7 @@ static struct tegra_dc_feature_entry t20_feature_entries_a[] = {
 static struct tegra_dc_feature_entry t20_feature_entries_b[] = {
        { 0, TEGRA_DC_FEATURE_FORMATS, {TEGRA_WIN_FMT_WIN_A,} },
        { 0, TEGRA_DC_FEATURE_BLEND_TYPE, {1,} },
-       { 0, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 16, 4095, 16,} },
+       { 0, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 1, 4095, 1,} },
        { 0, TEGRA_DC_FEATURE_MAXIMUM_SCALE, {2, 2, 2, 2,} },
        { 0, TEGRA_DC_FEATURE_FILTER_TYPE, {0, 0,} },
        { 0, TEGRA_DC_FEATURE_LAYOUT_TYPE, {1, 1,} },
@@ -59,7 +59,7 @@ static struct tegra_dc_feature_entry t20_feature_entries_b[] = {
        { 1, TEGRA_DC_FEATURE_FORMATS, {TEGRA_WIN_FMT_WIN_B,} },
        { 1, TEGRA_DC_FEATURE_PREFERRED_FORMATS, {TEGRA_WIN_PREF_FMT_WIN_B,} },
        { 1, TEGRA_DC_FEATURE_BLEND_TYPE, {1,} },
-       { 1, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 16, 4095, 16,} },
+       { 1, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 1, 4095, 1,} },
        { 1, TEGRA_DC_FEATURE_MAXIMUM_SCALE, {2, 2, 2, 2,} },
        { 1, TEGRA_DC_FEATURE_FILTER_TYPE, {1, 1,} },
        { 1, TEGRA_DC_FEATURE_LAYOUT_TYPE, {1, 1,} },
@@ -67,7 +67,7 @@ static struct tegra_dc_feature_entry t20_feature_entries_b[] = {
 
        { 2, TEGRA_DC_FEATURE_FORMATS, {TEGRA_WIN_FMT_WIN_C,} },
        { 2, TEGRA_DC_FEATURE_BLEND_TYPE, {1,} },
-       { 2, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 16, 4095, 16,} },
+       { 2, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 1, 4095, 1,} },
        { 2, TEGRA_DC_FEATURE_MAXIMUM_SCALE, {2, 2, 2, 2,} },
        { 2, TEGRA_DC_FEATURE_FILTER_TYPE, {0, 1,} },
        { 2, TEGRA_DC_FEATURE_LAYOUT_TYPE, {1, 1,} },
@@ -85,7 +85,7 @@ struct tegra_dc_feature t20_feature_table_b = {
 static struct tegra_dc_feature_entry t30_feature_entries_a[] = {
        { 0, TEGRA_DC_FEATURE_FORMATS, {TEGRA_WIN_FMT_WIN_A,} },
        { 0, TEGRA_DC_FEATURE_BLEND_TYPE, {1,} },
-       { 0, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 16, 4095, 16,} },
+       { 0, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 1, 4095, 1,} },
        { 0, TEGRA_DC_FEATURE_MAXIMUM_SCALE, {2, 2, 2, 2,} },
        { 0, TEGRA_DC_FEATURE_FILTER_TYPE, {0, 0,} },
        { 0, TEGRA_DC_FEATURE_LAYOUT_TYPE, {1, 1} },
@@ -94,7 +94,7 @@ static struct tegra_dc_feature_entry t30_feature_entries_a[] = {
        { 1, TEGRA_DC_FEATURE_FORMATS, {TEGRA_WIN_FMT_WIN_B,} },
        { 1, TEGRA_DC_FEATURE_PREFERRED_FORMATS, {TEGRA_WIN_PREF_FMT_WIN_B,} },
        { 1, TEGRA_DC_FEATURE_BLEND_TYPE, {1,} },
-       { 1, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 16, 4095, 16,} },
+       { 1, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 1, 4095, 1,} },
        { 1, TEGRA_DC_FEATURE_MAXIMUM_SCALE, {2, 2, 2, 2,} },
        { 1, TEGRA_DC_FEATURE_FILTER_TYPE, {1, 1,} },
        { 1, TEGRA_DC_FEATURE_LAYOUT_TYPE, {1, 1} },
@@ -102,7 +102,7 @@ static struct tegra_dc_feature_entry t30_feature_entries_a[] = {
 
        { 2, TEGRA_DC_FEATURE_FORMATS, {TEGRA_WIN_FMT_WIN_C,} },
        { 2, TEGRA_DC_FEATURE_BLEND_TYPE, {1,} },
-       { 2, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 16, 4095, 16,} },
+       { 2, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 1, 4095, 1,} },
        { 2, TEGRA_DC_FEATURE_MAXIMUM_SCALE, {2, 2, 2, 2,} },
        { 2, TEGRA_DC_FEATURE_FILTER_TYPE, {0, 1,} },
        { 2, TEGRA_DC_FEATURE_LAYOUT_TYPE, {1, 1} },
@@ -112,7 +112,7 @@ static struct tegra_dc_feature_entry t30_feature_entries_a[] = {
 static struct tegra_dc_feature_entry t30_feature_entries_b[] = {
        { 0, TEGRA_DC_FEATURE_FORMATS, {TEGRA_WIN_FMT_WIN_A,} },
        { 0, TEGRA_DC_FEATURE_BLEND_TYPE, {1,} },
-       { 0, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 16, 4095, 16,} },
+       { 0, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 1, 4095, 1,} },
        { 0, TEGRA_DC_FEATURE_MAXIMUM_SCALE, {2, 2, 2, 2,} },
        { 0, TEGRA_DC_FEATURE_FILTER_TYPE, {0, 0,} },
        { 0, TEGRA_DC_FEATURE_LAYOUT_TYPE, {1, 1,} },
@@ -121,7 +121,7 @@ static struct tegra_dc_feature_entry t30_feature_entries_b[] = {
        { 1, TEGRA_DC_FEATURE_FORMATS, {TEGRA_WIN_FMT_WIN_B,} },
        { 1, TEGRA_DC_FEATURE_PREFERRED_FORMATS, {TEGRA_WIN_PREF_FMT_WIN_B,} },
        { 1, TEGRA_DC_FEATURE_BLEND_TYPE, {1,} },
-       { 1, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 16, 4095, 16,} },
+       { 1, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 1, 4095, 1,} },
        { 1, TEGRA_DC_FEATURE_MAXIMUM_SCALE, {2, 2, 2, 2,} },
        { 1, TEGRA_DC_FEATURE_FILTER_TYPE, {1, 1,} },
        { 1, TEGRA_DC_FEATURE_LAYOUT_TYPE, {1, 1,} },
@@ -129,7 +129,7 @@ static struct tegra_dc_feature_entry t30_feature_entries_b[] = {
 
        { 2, TEGRA_DC_FEATURE_FORMATS, {TEGRA_WIN_FMT_WIN_C,} },
        { 2, TEGRA_DC_FEATURE_BLEND_TYPE, {1,} },
-       { 2, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 16, 4095, 16,} },
+       { 2, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 1, 4095, 1,} },
        { 2, TEGRA_DC_FEATURE_MAXIMUM_SCALE, {2, 2, 2, 2,} },
        { 2, TEGRA_DC_FEATURE_FILTER_TYPE, {0, 1,} },
        { 2, TEGRA_DC_FEATURE_LAYOUT_TYPE, {1, 1,} },
@@ -147,7 +147,7 @@ struct tegra_dc_feature t30_feature_table_b = {
 static struct tegra_dc_feature_entry t114_feature_entries_a[] = {
        { 0, TEGRA_DC_FEATURE_FORMATS, {TEGRA_WIN_FMT_BASE,} },
        { 0, TEGRA_DC_FEATURE_BLEND_TYPE, {1,} },
-       { 0, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 16, 4095, 16,} },
+       { 0, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 1, 4095, 1,} },
        { 0, TEGRA_DC_FEATURE_MAXIMUM_SCALE, {2, 2, 2, 2,} },
        { 0, TEGRA_DC_FEATURE_FILTER_TYPE, {1, 1,} },
        { 0, TEGRA_DC_FEATURE_LAYOUT_TYPE, {1, 1,} },
@@ -155,7 +155,7 @@ static struct tegra_dc_feature_entry t114_feature_entries_a[] = {
 
        { 1, TEGRA_DC_FEATURE_FORMATS, {TEGRA_WIN_FMT_BASE,} },
        { 1, TEGRA_DC_FEATURE_BLEND_TYPE, {1,} },
-       { 1, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 16, 4095, 16,} },
+       { 1, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 1, 4095, 1,} },
        { 1, TEGRA_DC_FEATURE_MAXIMUM_SCALE, {2, 2, 2, 2,} },
        { 1, TEGRA_DC_FEATURE_FILTER_TYPE, {1, 1,} },
        { 1, TEGRA_DC_FEATURE_LAYOUT_TYPE, {1, 1,} },
@@ -163,7 +163,7 @@ static struct tegra_dc_feature_entry t114_feature_entries_a[] = {
 
        { 2, TEGRA_DC_FEATURE_FORMATS, {TEGRA_WIN_FMT_BASE,} },
        { 2, TEGRA_DC_FEATURE_BLEND_TYPE, {1,} },
-       { 2, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 16, 4095, 16,} },
+       { 2, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 1, 4095, 1,} },
        { 2, TEGRA_DC_FEATURE_MAXIMUM_SCALE, {2, 2, 2, 2,} },
        { 2, TEGRA_DC_FEATURE_FILTER_TYPE, {1, 1,} },
        { 2, TEGRA_DC_FEATURE_LAYOUT_TYPE, {1, 1,} },
@@ -173,7 +173,7 @@ static struct tegra_dc_feature_entry t114_feature_entries_a[] = {
 static struct tegra_dc_feature_entry t114_feature_entries_b[] = {
        { 0, TEGRA_DC_FEATURE_FORMATS, {TEGRA_WIN_FMT_BASE,} },
        { 0, TEGRA_DC_FEATURE_BLEND_TYPE, {1,} },
-       { 0, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 16, 4095, 16,} },
+       { 0, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 1, 4095, 1,} },
        { 0, TEGRA_DC_FEATURE_MAXIMUM_SCALE, {2, 2, 2, 2,} },
        { 0, TEGRA_DC_FEATURE_FILTER_TYPE, {1, 1,} },
        { 0, TEGRA_DC_FEATURE_LAYOUT_TYPE, {1, 1,} },
@@ -181,7 +181,7 @@ static struct tegra_dc_feature_entry t114_feature_entries_b[] = {
 
        { 1, TEGRA_DC_FEATURE_FORMATS, {TEGRA_WIN_FMT_BASE,} },
        { 1, TEGRA_DC_FEATURE_BLEND_TYPE, {1,} },
-       { 1, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 16, 4095, 16,} },
+       { 1, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 1, 4095, 1,} },
        { 1, TEGRA_DC_FEATURE_MAXIMUM_SCALE, {2, 2, 2, 2,} },
        { 1, TEGRA_DC_FEATURE_FILTER_TYPE, {1, 1,} },
        { 1, TEGRA_DC_FEATURE_LAYOUT_TYPE, {1, 1,} },
@@ -189,7 +189,7 @@ static struct tegra_dc_feature_entry t114_feature_entries_b[] = {
 
        { 2, TEGRA_DC_FEATURE_FORMATS, {TEGRA_WIN_FMT_BASE,} },
        { 2, TEGRA_DC_FEATURE_BLEND_TYPE, {1,} },
-       { 2, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 16, 4095, 16,} },
+       { 2, TEGRA_DC_FEATURE_MAXIMUM_SIZE, {4095, 1, 4095, 1,} },
        { 2, TEGRA_DC_FEATURE_MAXIMUM_SCALE, {2, 2, 2, 2,} },
        { 2, TEGRA_DC_FEATURE_FILTER_TYPE, {1, 1,} },
        { 2, TEGRA_DC_FEATURE_LAYOUT_TYPE, {1, 1,} },