summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-12-14 20:50:28 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2020-12-14 20:51:59 +0000
commitcc23c25c368a4a6d721a9b8a3c9bf32044ebc585 (patch)
tree04cfc28d2021166086891992bfabc9511f0d2614
parenta668d5c148ec3c1d3958f660a146a88676aac25d (diff)
lib/i915: Use I915_CONTEXT_PARAM_GTT_SIZE
Replace the open-coded value of 0x3 with the I915_CONTEXT_PARAM_GTT_SIZE from i915_drm.h Suggested-by: Bruce Chang <yu.bruce.chang@intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Bruce Chang <yu.bruce.chang@intel.com>
-rw-r--r--lib/i915/gem_mman.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/i915/gem_mman.c b/lib/i915/gem_mman.c
index ed72889a..728f6e96 100644
--- a/lib/i915/gem_mman.c
+++ b/lib/i915/gem_mman.c
@@ -586,7 +586,7 @@ uint64_t gem_available_aperture_size(int fd)
uint64_t gem_aperture_size(int fd)
{
struct drm_i915_gem_context_param p = {
- .param = 0x3
+ .param = I915_CONTEXT_PARAM_GTT_SIZE
};
if (__gem_context_get_param(fd, &p))