fix nouveau build
This commit is contained in:
parent
89c020a474
commit
87e6269f24
94
mesa-nouveau-libdrm-2_4_24.patch
Normal file
94
mesa-nouveau-libdrm-2_4_24.patch
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
From 5c102dd94f435e97507213fbd128e50dd15f5f54 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Ben Skeggs <bskeggs@redhat.com>
|
||||||
|
Date: Mon, 20 Dec 2010 13:39:36 +1000
|
||||||
|
Subject: [PATCH] nouveau: fix includes for latest libdrm
|
||||||
|
|
||||||
|
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
|
||||||
|
---
|
||||||
|
src/gallium/drivers/nouveau/nouveau_winsys.h | 2 +-
|
||||||
|
src/gallium/drivers/nv50/nv50_surface.c | 2 +-
|
||||||
|
src/gallium/drivers/nvfx/nv04_2d.c | 2 +-
|
||||||
|
src/gallium/drivers/nvfx/nvfx_vbo.c | 3 +--
|
||||||
|
src/mesa/drivers/dri/nouveau/nouveau_driver.h | 2 +-
|
||||||
|
5 files changed, 5 insertions(+), 6 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/gallium/drivers/nouveau/nouveau_winsys.h b/src/gallium/drivers/nouveau/nouveau_winsys.h
|
||||||
|
index ab480ca..747b084 100644
|
||||||
|
--- a/src/gallium/drivers/nouveau/nouveau_winsys.h
|
||||||
|
+++ b/src/gallium/drivers/nouveau/nouveau_winsys.h
|
||||||
|
@@ -10,7 +10,7 @@
|
||||||
|
#include "nouveau/nouveau_grobj.h"
|
||||||
|
#include "nouveau/nouveau_notifier.h"
|
||||||
|
#include "nouveau/nouveau_resource.h"
|
||||||
|
-#include "nouveau/nouveau_pushbuf.h"
|
||||||
|
+#include "nouveau/nv04_pushbuf.h"
|
||||||
|
|
||||||
|
#ifndef NV04_PFIFO_MAX_PACKET_LEN
|
||||||
|
#define NV04_PFIFO_MAX_PACKET_LEN 2047
|
||||||
|
diff --git a/src/gallium/drivers/nv50/nv50_surface.c b/src/gallium/drivers/nv50/nv50_surface.c
|
||||||
|
index ce48022..a99df76 100644
|
||||||
|
--- a/src/gallium/drivers/nv50/nv50_surface.c
|
||||||
|
+++ b/src/gallium/drivers/nv50/nv50_surface.c
|
||||||
|
@@ -22,7 +22,7 @@
|
||||||
|
|
||||||
|
#define __NOUVEAU_PUSH_H__
|
||||||
|
#include <stdint.h>
|
||||||
|
-#include "nouveau/nouveau_pushbuf.h"
|
||||||
|
+#include "nouveau/nv04_pushbuf.h"
|
||||||
|
#include "nv50_context.h"
|
||||||
|
#include "nv50_resource.h"
|
||||||
|
#include "pipe/p_defines.h"
|
||||||
|
diff --git a/src/gallium/drivers/nvfx/nv04_2d.c b/src/gallium/drivers/nvfx/nv04_2d.c
|
||||||
|
index e0e65e7..e2fadd3 100644
|
||||||
|
--- a/src/gallium/drivers/nvfx/nv04_2d.c
|
||||||
|
+++ b/src/gallium/drivers/nvfx/nv04_2d.c
|
||||||
|
@@ -34,11 +34,11 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <nouveau/nouveau_device.h>
|
||||||
|
-#include <nouveau/nouveau_pushbuf.h>
|
||||||
|
#include <nouveau/nouveau_channel.h>
|
||||||
|
#include <nouveau/nouveau_bo.h>
|
||||||
|
#include <nouveau/nouveau_notifier.h>
|
||||||
|
#include <nouveau/nouveau_grobj.h>
|
||||||
|
+#include <nouveau/nv04_pushbuf.h>
|
||||||
|
#include "nv04_2d.h"
|
||||||
|
|
||||||
|
#include "nouveau/nv_object.xml.h"
|
||||||
|
diff --git a/src/gallium/drivers/nvfx/nvfx_vbo.c b/src/gallium/drivers/nvfx/nvfx_vbo.c
|
||||||
|
index 597664e..339b317 100644
|
||||||
|
--- a/src/gallium/drivers/nvfx/nvfx_vbo.c
|
||||||
|
+++ b/src/gallium/drivers/nvfx/nvfx_vbo.c
|
||||||
|
@@ -9,8 +9,7 @@
|
||||||
|
#include "nvfx_resource.h"
|
||||||
|
|
||||||
|
#include "nouveau/nouveau_channel.h"
|
||||||
|
-
|
||||||
|
-#include "nouveau/nouveau_pushbuf.h"
|
||||||
|
+#include "nouveau/nv04_pushbuf.h"
|
||||||
|
|
||||||
|
static inline unsigned
|
||||||
|
util_guess_unique_indices_count(unsigned mode, unsigned indices)
|
||||||
|
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_driver.h b/src/mesa/drivers/dri/nouveau/nouveau_driver.h
|
||||||
|
index 8036b18..c5ac128 100644
|
||||||
|
--- a/src/mesa/drivers/dri/nouveau/nouveau_driver.h
|
||||||
|
+++ b/src/mesa/drivers/dri/nouveau/nouveau_driver.h
|
||||||
|
@@ -38,7 +38,6 @@
|
||||||
|
#include <assert.h>
|
||||||
|
|
||||||
|
#include "nouveau_device.h"
|
||||||
|
-#include "nouveau_pushbuf.h"
|
||||||
|
#include "nouveau_grobj.h"
|
||||||
|
#include "nouveau_channel.h"
|
||||||
|
#include "nouveau_bo.h"
|
||||||
|
@@ -46,6 +45,7 @@
|
||||||
|
#include "nouveau_screen.h"
|
||||||
|
#include "nouveau_state.h"
|
||||||
|
#include "nouveau_surface.h"
|
||||||
|
+#include "nv04_pushbuf.h"
|
||||||
|
|
||||||
|
#define DRIVER_DATE "20091015"
|
||||||
|
#define DRIVER_AUTHOR "Nouveau"
|
||||||
|
--
|
||||||
|
1.7.3.4
|
||||||
|
|
@ -32,6 +32,8 @@ Patch4: legacy-drivers.patch
|
|||||||
|
|
||||||
#Patch7: mesa-7.1-link-shared.patch
|
#Patch7: mesa-7.1-link-shared.patch
|
||||||
|
|
||||||
|
Patch10: mesa-nouveau-libdrm-2_4_24.patch
|
||||||
|
|
||||||
Patch30: mesa-7.6-hush-vblank-warning.patch
|
Patch30: mesa-7.6-hush-vblank-warning.patch
|
||||||
Patch31: mesa-7.10-swrastg.patch
|
Patch31: mesa-7.10-swrastg.patch
|
||||||
|
|
||||||
@ -194,6 +196,7 @@ Requires: Xorg %(xserver-sdk-abi-requires ansic) %(xserver-sdk-abi-requires vide
|
|||||||
%patch3 -p1 -b .no-mach64
|
%patch3 -p1 -b .no-mach64
|
||||||
%patch4 -p1 -b .classic
|
%patch4 -p1 -b .classic
|
||||||
#patch7 -p1 -b .dricore
|
#patch7 -p1 -b .dricore
|
||||||
|
%patch10 -p1 -b .nv-libdrm
|
||||||
%patch30 -p1 -b .vblank-warning
|
%patch30 -p1 -b .vblank-warning
|
||||||
#patch31 -p1 -b .swrastg
|
#patch31 -p1 -b .swrastg
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user