minigm: add kind C32_2CRA and set it as default
We need some additional minigbm API to set kind for buffer.
BUG=chromium:478339
TEST=none
Change-Id: I770e5d4d8af07d846557953ba52a3529b8715c8d
Signed-off-by: Vince Hsu <vince.h@nvidia.com>
Reviewed-on: https://chromium-review.googlesource.com/346364
Commit-Ready: Mark Zhang <markz%nvidia.com@gtempaccount.com>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
diff --git a/tegra.c b/tegra.c
index 69c068b..ebc83c7 100644
--- a/tegra.c
+++ b/tegra.c
@@ -28,6 +28,7 @@
enum nv_mem_kind
{
NV_MEM_KIND_PITCH = 0,
+ NV_MEM_KIND_C32_2CRA = 0xdb,
NV_MEM_KIND_GENERIC_16Bx2 = 0xfe,
};
@@ -73,7 +74,7 @@
*/
bytes = ALIGN(bytes, NV_PREFERRED_PAGE_SIZE);
- *kind = NV_MEM_KIND_GENERIC_16Bx2;
+ *kind = NV_MEM_KIND_C32_2CRA;
*stride = pitch;
*size = bytes;
}