Rename nouveau_tris.* to nouveau_swtcl.*
This commit is contained in:
@@ -16,7 +16,7 @@ DRIVER_SOURCES = \
|
||||
nouveau_span.c \
|
||||
nouveau_state.c \
|
||||
nouveau_tex.c \
|
||||
nouveau_tris.c \
|
||||
nouveau_swtcl.c \
|
||||
nv10_swtcl.c
|
||||
|
||||
C_SOURCES = \
|
||||
|
||||
@@ -36,13 +36,12 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#include "nouveau_msg.h"
|
||||
|
||||
// here we call the fifo initialization ioctl and fill in stuff accordingly
|
||||
void nouveauIoctlInitFifo()
|
||||
void nouveauIoctlInitFifo(nouveauContextPtr nmesa)
|
||||
{
|
||||
int ret;
|
||||
__DRIscreenPrivate *sPriv;
|
||||
drm_nouveau_fifo_init_t fifo_init;
|
||||
|
||||
ret = drmCommandWriteRead(sPriv->fd, DRM_NOUVEAU_FIFO_INIT, &fifo_init, sizeof(fifo_init));
|
||||
ret = drmCommandWriteRead(nmesa->driFd, DRM_NOUVEAU_FIFO_INIT, &fifo_init, sizeof(fifo_init));
|
||||
if (ret)
|
||||
FATAL("Fifo initialization ioctl failed (returned %d)\n",ret);
|
||||
MESSAGE("Fifo init ok. Channel %d\n", fifo_init.channel);
|
||||
|
||||
@@ -28,7 +28,9 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#ifndef __NOUVEAU_IOCTL_H__
|
||||
#define __NOUVEAU_IOCTL_H__
|
||||
|
||||
extern void nouveauIoctlInitFifo();
|
||||
#include "nouveau_context.h"
|
||||
|
||||
extern void nouveauIoctlInitFifo(nouveauContextPtr nmesa);
|
||||
extern void nouveauIoctlInitFunctions(struct dd_function_table *functions);
|
||||
|
||||
#endif /* __NOUVEAU_IOCTL_H__ */
|
||||
|
||||
@@ -27,7 +27,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#include "nouveau_context.h"
|
||||
#include "nouveau_state.h"
|
||||
#include "nouveau_ioctl.h"
|
||||
#include "nouveau_tris.h"
|
||||
#include "nouveau_swtcl.h"
|
||||
#include "nouveau_fifo.h"
|
||||
|
||||
#include "swrast/swrast.h"
|
||||
|
||||
+3
-1
@@ -24,8 +24,10 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
**************************************************************************/
|
||||
|
||||
/* Common software TCL code */
|
||||
|
||||
#include "nouveau_context.h"
|
||||
#include "nouveau_tris.h"
|
||||
#include "nouveau_swtcl.h"
|
||||
#include "nv10_swtcl.h"
|
||||
#include "nouveau_span.h"
|
||||
#include "swrast/swrast.h"
|
||||
+3
-3
@@ -26,8 +26,8 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
|
||||
#ifndef __NOUVEAU_TRIS_H__
|
||||
#define __NOUVEAU_TRIS_H__
|
||||
#ifndef __NOUVEAU_SWTCL_H__
|
||||
#define __NOUVEAU_SWTCL_H__
|
||||
|
||||
#include "nouveau_context.h"
|
||||
|
||||
@@ -50,6 +50,6 @@ extern void nouveauRunPipeline( GLcontext *ctx );
|
||||
extern void nouveauTriInitFunctions( GLcontext *ctx );
|
||||
|
||||
|
||||
#endif /* __NOUVEAU_TRIS_H__ */
|
||||
#endif /* __NOUVEAU_SWTCL_H__ */
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
#include "tnl/t_context.h"
|
||||
#include "tnl/t_pipeline.h"
|
||||
|
||||
#include "nouveau_tris.h"
|
||||
#include "nouveau_swtcl.h"
|
||||
#include "nv10_swtcl.h"
|
||||
#include "nouveau_context.h"
|
||||
#include "nouveau_span.h"
|
||||
|
||||
Reference in New Issue
Block a user