summaryrefslogtreecommitdiff
path: root/tests/i915/gem_exec_whisper.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-08-06 16:26:27 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2020-10-15 12:30:34 +0100
commitdf00ac06974c8d81a34012e91c7b80f5b0b06cf3 (patch)
tree4026be3cd94e09363b5de2fece78d239f092f3a6 /tests/i915/gem_exec_whisper.c
parent34b61beba9b1ac560db888a8190e461edf600a9a (diff)
tests/i915: Treat gen as unsigned for forward compatibility
We want to recognise future devices (gen = -1u) and treat them as an extension of the latest known device, which is typically true. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Zbigniew KempczyƄski <zbigniew.kempczynski@intel.com>
Diffstat (limited to 'tests/i915/gem_exec_whisper.c')
-rw-r--r--tests/i915/gem_exec_whisper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i915/gem_exec_whisper.c b/tests/i915/gem_exec_whisper.c
index 1fded761..9acf6c30 100644
--- a/tests/i915/gem_exec_whisper.c
+++ b/tests/i915/gem_exec_whisper.c
@@ -168,7 +168,7 @@ static void ctx_set_random_priority(int fd, uint32_t ctx)
static void whisper(int fd, unsigned engine, unsigned flags)
{
const uint32_t bbe = MI_BATCH_BUFFER_END;
- const int gen = intel_gen(intel_get_drm_devid(fd));
+ const unsigned int gen = intel_gen(intel_get_drm_devid(fd));
struct drm_i915_gem_exec_object2 batches[QLEN];
struct drm_i915_gem_relocation_entry inter[QLEN];
struct drm_i915_gem_relocation_entry reloc;