summaryrefslogtreecommitdiff
path: root/tests/i915/gem_softpin.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2021-01-12 01:27:13 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2021-01-12 01:28:47 +0000
commit4ad3fdae02ad6e6147a96e3c05438be043426266 (patch)
treee1c0e2309f3a8eb6f6a62d85b4031e7e2eeedc54 /tests/i915/gem_softpin.c
parent2763c0977004bed596ee876c755b0768187ea9ab (diff)
i915/gem_softpin: Set size=4096 before calling __gem_create
Upon converting to __gem_create(), we now need to set the size in the caller. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'tests/i915/gem_softpin.c')
-rw-r--r--tests/i915/gem_softpin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/i915/gem_softpin.c b/tests/i915/gem_softpin.c
index b2514c99..7edb610b 100644
--- a/tests/i915/gem_softpin.c
+++ b/tests/i915/gem_softpin.c
@@ -112,7 +112,7 @@ static uint32_t batch_create(int i915, uint64_t *sz)
static void test_zero(int i915)
{
- uint64_t sz, gtt = gem_aperture_size(i915);
+ uint64_t sz = 4096, gtt = gem_aperture_size(i915);
struct drm_i915_gem_exec_object2 object = {
.handle = batch_create(i915, &sz),
.flags = EXEC_OBJECT_PINNED | EXEC_OBJECT_SUPPORTS_48B_ADDRESS,
@@ -154,7 +154,7 @@ static void test_zero(int i915)
static void test_32b_last_page(int i915)
{
- uint64_t sz, gtt = gem_aperture_size(i915);
+ uint64_t sz = 4096, gtt = gem_aperture_size(i915);
struct drm_i915_gem_exec_object2 object = {
.flags = EXEC_OBJECT_PINNED,
};
@@ -187,7 +187,7 @@ static void test_32b_last_page(int i915)
static void test_full(int i915)
{
- uint64_t sz, gtt = gem_aperture_size(i915);
+ uint64_t sz = 4096, gtt = gem_aperture_size(i915);
struct drm_i915_gem_exec_object2 obj[2] = {
/* Use two objects so we can test .pad_to_size works */
{