OSDN Git Service

minigbm: i915: pass the right size to drv_add_combinations().
authorDongseong Hwang <dongseong.hwang@intel.com>
Wed, 14 Jun 2017 17:47:11 +0000 (10:47 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Thu, 15 Jun 2017 20:24:31 +0000 (13:24 -0700)
TEST=run drm-tests on amd64-generic

Change-Id: I7e1f99b4475b48f5cc2b0688dec9935ea2908d71
Reviewed-on: https://chromium-review.googlesource.com/535019
Commit-Ready: Dongseong Hwang <dongseong.hwang@intel.com>
Tested-by: Dongseong Hwang <dongseong.hwang@intel.com>
Reviewed-by: Dongseong Hwang <dongseong.hwang@intel.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
i915.c

diff --git a/i915.c b/i915.c
index aee3055..d1a1731 100644 (file)
--- a/i915.c
+++ b/i915.c
@@ -100,7 +100,8 @@ static int i915_add_combinations(struct driver *drv)
                return ret;
 
        ret = drv_add_combinations(drv, tileable_texture_source_formats,
-                                  ARRAY_SIZE(texture_source_formats), &metadata, texture_flags);
+                                  ARRAY_SIZE(tileable_texture_source_formats), &metadata,
+                                  texture_flags);
        if (ret)
                return ret;