diff options
-rw-r--r-- | src/sna/kgem.c | 4 | ||||
-rw-r--r-- | src/sna/kgem.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 59b5d24a..cc86d22c 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -833,7 +833,7 @@ static int kgem_get_screen_index(struct kgem *kgem) return sna->scrn->scrnIndex; } -void kgem_init(struct kgem *kgem, int fd, struct pci_device *dev, int gen) +void kgem_init(struct kgem *kgem, int fd, struct pci_device *dev, unsigned gen) { struct drm_i915_gem_get_aperture aperture; size_t totalram; @@ -1008,7 +1008,7 @@ void kgem_init(struct kgem *kgem, int fd, struct pci_device *dev, int gen) kgem->max_gpu_size = totalram / 4; half_gpu_max = kgem->max_gpu_size / 2; - if (kgem->gen >= 040) + if (gen >= 040) kgem->max_cpu_size = half_gpu_max; else kgem->max_cpu_size = kgem->max_object_size; diff --git a/src/sna/kgem.h b/src/sna/kgem.h index 63b3857b..6a3149af 100644 --- a/src/sna/kgem.h +++ b/src/sna/kgem.h @@ -207,7 +207,7 @@ struct kgem { #define KGEM_EXEC_SIZE(K) (int)(ARRAY_SIZE((K)->exec)-KGEM_EXEC_RESERVED) #define KGEM_RELOC_SIZE(K) (int)(ARRAY_SIZE((K)->reloc)-KGEM_RELOC_RESERVED) -void kgem_init(struct kgem *kgem, int fd, struct pci_device *dev, int gen); +void kgem_init(struct kgem *kgem, int fd, struct pci_device *dev, unsigned gen); void kgem_reset(struct kgem *kgem); struct kgem_bo *kgem_create_map(struct kgem *kgem, |