Merge branch 'mesa_7_7_branch'

Conflicts:

	src/mesa/drivers/dri/intel/intel_screen.c
	src/mesa/drivers/dri/intel/intel_swapbuffers.c
	src/mesa/drivers/dri/r300/r300_emit.c
	src/mesa/drivers/dri/r300/r300_ioctl.c
	src/mesa/drivers/dri/r300/r300_tex.c
	src/mesa/drivers/dri/r300/r300_texstate.c
This commit is contained in:
Brian Paul 2010-01-25 14:46:17 -07:00
commit 9b22427911
97 changed files with 93 additions and 207 deletions

View File

@ -113,6 +113,8 @@ if platform in ('posix', 'linux', 'freebsd', 'darwin'):
'PTHREADS', 'PTHREADS',
'HAVE_POSIX_MEMALIGN', 'HAVE_POSIX_MEMALIGN',
]) ])
if platform == 'darwin':
env.Append(CPPDEFINES = ['_DARWIN_C_SOURCE'])
env.Append(CPPPATH = ['/usr/X11R6/include']) env.Append(CPPPATH = ['/usr/X11R6/include'])
env.Append(LIBPATH = ['/usr/X11R6/lib']) env.Append(LIBPATH = ['/usr/X11R6/lib'])
env.Append(LIBS = [ env.Append(LIBS = [

View File

@ -124,13 +124,6 @@ reflect.o: reflect.c showbuffer.h
$(APP_CC) -c -I$(INCDIR) $(CFLAGS) reflect.c $(APP_CC) -c -I$(INCDIR) $(CFLAGS) reflect.c
shadowtex: shadowtex.o showbuffer.o
$(APP_CC) $(CFLAGS) $(LDFLAGS) shadowtex.o showbuffer.o $(LIBS) -o $@
shadowtex.o: shadowtex.c showbuffer.h
$(APP_CC) -c -I$(INCDIR) $(CFLAGS) shadowtex.c
gloss: gloss.o trackball.o readtex.o gloss: gloss.o trackball.o readtex.o
$(APP_CC) $(CFLAGS) $(LDFLAGS) gloss.o trackball.o readtex.o $(LIBS) -o $@ $(APP_CC) $(CFLAGS) $(LDFLAGS) gloss.o trackball.o readtex.o $(LIBS) -o $@

View File

@ -38,7 +38,6 @@
#include <math.h> #include <math.h>
#include <GL/glew.h> #include <GL/glew.h>
#include <GL/glut.h> #include <GL/glut.h>
#include "showbuffer.h"
#define DEG_TO_RAD (3.14159 / 180.0) #define DEG_TO_RAD (3.14159 / 180.0)

View File

@ -377,7 +377,10 @@ def generate(env):
'-Wl,-Bsymbolic', '-Wl,-Bsymbolic',
] ]
# Handle circular dependencies in the libraries # Handle circular dependencies in the libraries
env['_LIBFLAGS'] = '-Wl,--start-group ' + env['_LIBFLAGS'] + ' -Wl,--end-group' if env['platform'] in ('darwin'):
pass
else:
env['_LIBFLAGS'] = '-Wl,--start-group ' + env['_LIBFLAGS'] + ' -Wl,--end-group'
if msvc: if msvc:
if not env['debug']: if not env['debug']:
# enable Link-time Code Generation # enable Link-time Code Generation

View File

@ -390,7 +390,7 @@ a4r4g4b4_put_tile_rgba(ushort *dst,
g >>= 4; g >>= 4;
b >>= 4; b >>= 4;
a >>= 4; a >>= 4;
*dst++ = (a << 12) | (r << 16) | (g << 4) | b; *dst++ = (a << 12) | (r << 8) | (g << 4) | b;
} }
p += src_stride; p += src_stride;
} }

View File

@ -135,8 +135,8 @@ static VGint blend_bind_samplers(struct vg_context *ctx,
textures[2] = stfb->blend_texture; textures[2] = stfb->blend_texture;
if (!samplers[0] || !textures[0]) { if (!samplers[0] || !textures[0]) {
samplers[1] = samplers[2]; samplers[0] = samplers[2];
textures[1] = textures[2]; textures[0] = textures[2];
} }
if (!samplers[1] || !textures[1]) { if (!samplers[1] || !textures[1]) {
samplers[1] = samplers[0]; samplers[1] = samplers[0];

View File

@ -376,6 +376,7 @@ xorg_dri2_init(ScreenPtr pScreen)
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
modesettingPtr ms = modesettingPTR(pScrn); modesettingPtr ms = modesettingPTR(pScrn);
DRI2InfoRec dri2info; DRI2InfoRec dri2info;
#if DRI2INFOREC_VERSION >= 2
int major, minor; int major, minor;
if (xf86LoaderCheckSymbol("DRI2Version")) { if (xf86LoaderCheckSymbol("DRI2Version")) {
@ -385,6 +386,7 @@ xorg_dri2_init(ScreenPtr pScreen)
major = 1; major = 1;
minor = 0; minor = 0;
} }
#endif
dri2info.version = DRI2INFOREC_VERSION; dri2info.version = DRI2INFOREC_VERSION;
dri2info.fd = ms->fd; dri2info.fd = ms->fd;

View File

@ -78,11 +78,13 @@ typedef enum
{ {
OPTION_SW_CURSOR, OPTION_SW_CURSOR,
OPTION_2D_ACCEL, OPTION_2D_ACCEL,
OPTION_DEBUG_FALLBACK,
} drv_option_enums; } drv_option_enums;
static const OptionInfoRec drv_options[] = { static const OptionInfoRec drv_options[] = {
{OPTION_SW_CURSOR, "SWcursor", OPTV_BOOLEAN, {0}, FALSE}, {OPTION_SW_CURSOR, "SWcursor", OPTV_BOOLEAN, {0}, FALSE},
{OPTION_2D_ACCEL, "2DAccel", OPTV_BOOLEAN, {0}, FALSE}, {OPTION_2D_ACCEL, "2DAccel", OPTV_BOOLEAN, {0}, FALSE},
{OPTION_DEBUG_FALLBACK, "DebugFallback", OPTV_BOOLEAN, {0}, FALSE},
{-1, NULL, OPTV_NONE, {0}, FALSE} {-1, NULL, OPTV_NONE, {0}, FALSE}
}; };
@ -110,6 +112,28 @@ xorg_tracker_set_functions(ScrnInfoPtr scrn)
scrn->ValidMode = drv_valid_mode; scrn->ValidMode = drv_valid_mode;
} }
Bool
xorg_tracker_have_modesetting(ScrnInfoPtr pScrn, struct pci_device *device)
{
char *BusID = xalloc(64);
sprintf(BusID, "pci:%04x:%02x:%02x.%d",
device->domain, device->bus,
device->dev, device->func);
if (drmCheckModesettingSupported(BusID)) {
xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, 0,
"Drm modesetting not supported %s\n", BusID);
xfree(BusID);
return FALSE;
}
xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, 0,
"Drm modesetting supported on %s\n", BusID);
xfree(BusID);
return TRUE;
}
/* /*
* Internal function definitions * Internal function definitions
@ -648,10 +672,11 @@ drv_screen_init(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
xf86SetBlackWhitePixels(pScreen); xf86SetBlackWhitePixels(pScreen);
ms->accelerate_2d = xf86ReturnOptValBool(ms->Options, OPTION_2D_ACCEL, FALSE);
ms->debug_fallback = xf86ReturnOptValBool(ms->Options, OPTION_DEBUG_FALLBACK, TRUE);
if (ms->screen) { if (ms->screen) {
ms->exa = xorg_exa_init(pScrn, xf86ReturnOptValBool(ms->Options, ms->exa = xorg_exa_init(pScrn, ms->accelerate_2d);
OPTION_2D_ACCEL, TRUE));
ms->debug_fallback = debug_get_bool_option("XORG_DEBUG_FALLBACK", TRUE);
xorg_xv_init(pScreen); xorg_xv_init(pScreen);
#ifdef DRI2 #ifdef DRI2
@ -659,6 +684,17 @@ drv_screen_init(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
#endif #endif
} }
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "2D Acceleration is %s\n",
ms->screen && ms->accelerate_2d ? "enabled" : "disabled");
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Fallback debugging is %s\n",
ms->debug_fallback ? "enabled" : "disabled");
#ifdef DRI2
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "3D Acceleration is %s\n",
ms->screen ? "enabled" : "disabled");
#else
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "3D Acceleration is disabled\n");
#endif
miInitializeBackingStore(pScreen); miInitializeBackingStore(pScreen);
xf86SetBackingStore(pScreen); xf86SetBackingStore(pScreen);
xf86SetSilkenMouse(pScreen); xf86SetSilkenMouse(pScreen);
@ -1030,12 +1066,22 @@ drv_bind_front_buffer_kms(ScrnInfoPtr pScrn)
goto err_destroy; goto err_destroy;
pScreen->ModifyPixmapHeader(rootPixmap, pScreen->ModifyPixmapHeader(rootPixmap,
pScreen->width, pScrn->virtualX,
pScreen->height, pScrn->virtualY,
pScreen->rootDepth, pScreen->rootDepth,
pScrn->bitsPerPixel, pScrn->bitsPerPixel,
stride, stride,
ptr); ptr);
/* This a hack to work around EnableDisableFBAccess setting the pointer
* the real fix would be to replace pScrn->EnableDisableFBAccess hook
* and set the rootPixmap->devPrivate.ptr to something valid before that.
*
* But in its infinit visdome something uses either this some times before
* that, so our hook doesn't get called before the crash happens.
*/
pScrn->pixmapPrivate.ptr = ptr;
return TRUE; return TRUE;
err_destroy: err_destroy:

View File

@ -112,6 +112,7 @@ typedef struct _modesettingRec
/* exa */ /* exa */
struct exa_context *exa; struct exa_context *exa;
Bool noEvict; Bool noEvict;
Bool accelerate_2d;
Bool debug_fallback; Bool debug_fallback;
/* winsys hocks */ /* winsys hocks */

View File

@ -45,5 +45,6 @@
void xorg_tracker_set_functions(ScrnInfoPtr scrn); void xorg_tracker_set_functions(ScrnInfoPtr scrn);
const OptionInfoRec * xorg_tracker_available_options(int chipid, int busid); const OptionInfoRec * xorg_tracker_available_options(int chipid, int busid);
Bool xorg_tracker_have_modesetting(ScrnInfoPtr pScrn, struct pci_device *device);
#endif #endif

View File

@ -649,7 +649,8 @@ vmw_video_port_play(ScrnInfoPtr pScrn, struct vmw_video_port *port,
return XvBadAlloc; return XvBadAlloc;
} }
port->currBuf = ++port->currBuf & (VMWARE_VID_NUM_BUFFERS - 1); if (++(port->currBuf) >= VMWARE_VID_NUM_BUFFERS)
port->currBuf = 0;
return Success; return Success;
} }

View File

@ -34,10 +34,10 @@
#include "vmw_hook.h" #include "vmw_hook.h"
static void vmw_xorg_identify(int flags); static void vmw_xorg_identify(int flags);
static Bool vmw_xorg_pci_probe(DriverPtr driver, _X_EXPORT Bool vmw_xorg_pci_probe(DriverPtr driver,
int entity_num, int entity_num,
struct pci_device *device, struct pci_device *device,
intptr_t match_data); intptr_t match_data);
static const struct pci_id_match vmw_xorg_device_match[] = { static const struct pci_id_match vmw_xorg_device_match[] = {
{0x15ad, PCI_MATCH_ANY, PCI_MATCH_ANY, PCI_MATCH_ANY, 0, 0, 0}, {0x15ad, PCI_MATCH_ANY, PCI_MATCH_ANY, PCI_MATCH_ANY, 0, 0, 0},
@ -126,7 +126,7 @@ vmw_xorg_identify(int flags)
vmw_xorg_chipsets); vmw_xorg_chipsets);
} }
static Bool _X_EXPORT Bool
vmw_xorg_pci_probe(DriverPtr driver, vmw_xorg_pci_probe(DriverPtr driver,
int entity_num, struct pci_device *device, intptr_t match_data) int entity_num, struct pci_device *device, intptr_t match_data)
{ {

View File

@ -28,14 +28,11 @@
#include "i830_context.h" #include "i830_context.h"
#include "main/imports.h" #include "main/imports.h"
#include "texmem.h" #include "texmem.h"
#include "intel_tex.h"
#include "tnl/tnl.h" #include "tnl/tnl.h"
#include "tnl/t_vertex.h" #include "tnl/t_vertex.h"
#include "tnl/t_context.h" #include "tnl/t_context.h"
#include "tnl/t_pipeline.h" #include "tnl/t_pipeline.h"
#include "utils.h"
#include "intel_span.h" #include "intel_span.h"
#include "intel_pixel.h"
#include "intel_tris.h" #include "intel_tris.h"
/*************************************** /***************************************

View File

@ -28,7 +28,6 @@
#include "i915_context.h" #include "i915_context.h"
#include "main/imports.h" #include "main/imports.h"
#include "main/macros.h" #include "main/macros.h"
#include "intel_tex.h"
#include "intel_tris.h" #include "intel_tris.h"
#include "tnl/t_context.h" #include "tnl/t_context.h"
#include "tnl/t_pipeline.h" #include "tnl/t_pipeline.h"
@ -38,15 +37,11 @@
#include "swrast_setup/swrast_setup.h" #include "swrast_setup/swrast_setup.h"
#include "tnl/tnl.h" #include "tnl/tnl.h"
#include "utils.h"
#include "i915_reg.h" #include "i915_reg.h"
#include "i915_program.h" #include "i915_program.h"
#include "intel_regions.h"
#include "intel_batchbuffer.h"
#include "intel_tris.h" #include "intel_tris.h"
#include "intel_span.h" #include "intel_span.h"
#include "intel_pixel.h"
/*************************************** /***************************************
* Mesa's Driver Functions * Mesa's Driver Functions

View File

@ -30,9 +30,6 @@
#include "i915_reg.h" #include "i915_reg.h"
#include "i915_debug.h" #include "i915_debug.h"
#include "main/imports.h" #include "main/imports.h"
#include "shader/program.h"
#include "shader/prog_instruction.h"
#include "shader/prog_print.h"
#define PRINTF( ... ) _mesa_printf( __VA_ARGS__ ) #define PRINTF( ... ) _mesa_printf( __VA_ARGS__ )

View File

@ -37,7 +37,6 @@
#include "tnl/t_vertex.h" #include "tnl/t_vertex.h"
#include "intel_batchbuffer.h" #include "intel_batchbuffer.h"
#include "intel_tex.h"
#include "intel_regions.h" #include "intel_regions.h"
#include "intel_tris.h" #include "intel_tris.h"
#include "intel_fbo.h" #include "intel_fbo.h"

View File

@ -52,7 +52,6 @@
#include "intel_buffers.h" #include "intel_buffers.h"
#include "intel_reg.h" #include "intel_reg.h"
#include "intel_span.h" #include "intel_span.h"
#include "intel_tex.h"
#include "intel_chipset.h" #include "intel_chipset.h"
#include "i830_context.h" #include "i830_context.h"
#include "i830_reg.h" #include "i830_reg.h"

View File

@ -34,9 +34,7 @@
#include "brw_state.h" #include "brw_state.h"
#include "brw_defines.h" #include "brw_defines.h"
#include "brw_util.h" #include "brw_util.h"
#include "intel_fbo.h"
#include "main/macros.h" #include "main/macros.h"
#include "main/enums.h"
static void prepare_cc_vp( struct brw_context *brw ) static void prepare_cc_vp( struct brw_context *brw )
{ {

View File

@ -39,7 +39,6 @@
#include "brw_defines.h" #include "brw_defines.h"
#include "brw_context.h" #include "brw_context.h"
#include "brw_eu.h" #include "brw_eu.h"
#include "brw_util.h"
#include "brw_clip.h" #include "brw_clip.h"

View File

@ -39,7 +39,6 @@
#include "brw_defines.h" #include "brw_defines.h"
#include "brw_context.h" #include "brw_context.h"
#include "brw_eu.h" #include "brw_eu.h"
#include "brw_util.h"
#include "brw_clip.h" #include "brw_clip.h"

View File

@ -32,7 +32,6 @@
#include "brw_context.h" #include "brw_context.h"
#include "brw_state.h" #include "brw_state.h"
#include "brw_defines.h" #include "brw_defines.h"
#include "main/macros.h"
struct brw_clip_unit_key { struct brw_clip_unit_key {
unsigned int total_grf; unsigned int total_grf;

View File

@ -39,7 +39,6 @@
#include "brw_defines.h" #include "brw_defines.h"
#include "brw_context.h" #include "brw_context.h"
#include "brw_eu.h" #include "brw_eu.h"
#include "brw_util.h"
#include "brw_clip.h" #include "brw_clip.h"
static void release_tmps( struct brw_clip_compile *c ) static void release_tmps( struct brw_clip_compile *c )

View File

@ -39,7 +39,6 @@
#include "brw_defines.h" #include "brw_defines.h"
#include "brw_context.h" #include "brw_context.h"
#include "brw_eu.h" #include "brw_eu.h"
#include "brw_util.h"
#include "brw_clip.h" #include "brw_clip.h"

View File

@ -40,7 +40,6 @@
#include "brw_defines.h" #include "brw_defines.h"
#include "brw_context.h" #include "brw_context.h"
#include "brw_eu.h" #include "brw_eu.h"
#include "brw_util.h"
#include "brw_clip.h" #include "brw_clip.h"

View File

@ -33,24 +33,15 @@
#include "main/imports.h" #include "main/imports.h"
#include "main/api_noop.h" #include "main/api_noop.h"
#include "main/macros.h" #include "main/macros.h"
#include "main/vtxfmt.h"
#include "main/simple_list.h" #include "main/simple_list.h"
#include "shader/shader_api.h" #include "shader/shader_api.h"
#include "brw_context.h" #include "brw_context.h"
#include "brw_defines.h"
#include "brw_draw.h" #include "brw_draw.h"
#include "brw_state.h" #include "brw_state.h"
#include "brw_vs.h"
#include "intel_tex.h"
#include "intel_blit.h"
#include "intel_batchbuffer.h"
#include "intel_pixel.h"
#include "intel_span.h" #include "intel_span.h"
#include "tnl/t_pipeline.h" #include "tnl/t_pipeline.h"
#include "utils.h"
/*************************************** /***************************************
* Mesa's Driver Functions * Mesa's Driver Functions

View File

@ -39,10 +39,8 @@
#include "brw_defines.h" #include "brw_defines.h"
#include "brw_context.h" #include "brw_context.h"
#include "brw_state.h" #include "brw_state.h"
#include "brw_fallback.h"
#include "intel_batchbuffer.h" #include "intel_batchbuffer.h"
#include "intel_buffer_objects.h"
#define FILE_DEBUG_FLAG DEBUG_BATCH #define FILE_DEBUG_FLAG DEBUG_BATCH

View File

@ -29,19 +29,15 @@
#include "main/glheader.h" #include "main/glheader.h"
#include "main/bufferobj.h" #include "main/bufferobj.h"
#include "main/context.h" #include "main/context.h"
#include "main/state.h"
#include "main/api_validate.h"
#include "main/enums.h" #include "main/enums.h"
#include "brw_draw.h" #include "brw_draw.h"
#include "brw_defines.h" #include "brw_defines.h"
#include "brw_context.h" #include "brw_context.h"
#include "brw_state.h" #include "brw_state.h"
#include "brw_fallback.h"
#include "intel_batchbuffer.h" #include "intel_batchbuffer.h"
#include "intel_buffer_objects.h" #include "intel_buffer_objects.h"
#include "intel_tex.h"
static GLuint double_types[5] = { static GLuint double_types[5] = {
0, 0,

View File

@ -36,7 +36,6 @@
#include "swrast/swrast.h" #include "swrast/swrast.h"
#include "tnl/tnl.h" #include "tnl/tnl.h"
#include "brw_context.h" #include "brw_context.h"
#include "brw_fallback.h"
#include "intel_chipset.h" #include "intel_chipset.h"
#include "intel_fbo.h" #include "intel_fbo.h"
#include "intel_regions.h" #include "intel_regions.h"

View File

@ -40,7 +40,6 @@
#include "brw_defines.h" #include "brw_defines.h"
#include "brw_context.h" #include "brw_context.h"
#include "brw_eu.h" #include "brw_eu.h"
#include "brw_util.h"
#include "brw_gs.h" #include "brw_gs.h"
static void brw_gs_alloc_regs( struct brw_gs_compile *c, static void brw_gs_alloc_regs( struct brw_gs_compile *c,

View File

@ -34,7 +34,6 @@
#include "brw_context.h" #include "brw_context.h"
#include "brw_state.h" #include "brw_state.h"
#include "brw_defines.h" #include "brw_defines.h"
#include "main/macros.h"
struct brw_gs_unit_key { struct brw_gs_unit_key {
unsigned int total_grf; unsigned int total_grf;

View File

@ -37,7 +37,6 @@
#include "tnl/tnl.h" #include "tnl/tnl.h"
#include "brw_context.h" #include "brw_context.h"
#include "brw_util.h"
#include "brw_wm.h" #include "brw_wm.h"
static void brwBindProgram( GLcontext *ctx, static void brwBindProgram( GLcontext *ctx,

View File

@ -35,7 +35,6 @@
#include "brw_state.h" #include "brw_state.h"
#include "brw_defines.h" #include "brw_defines.h"
#include "main/macros.h" #include "main/macros.h"
#include "intel_fbo.h"
static void upload_sf_vp(struct brw_context *brw) static void upload_sf_vp(struct brw_context *brw)
{ {

View File

@ -35,7 +35,6 @@
#include "brw_context.h" #include "brw_context.h"
#include "brw_state.h" #include "brw_state.h"
#include "brw_defines.h"
/* Creates a new VS constant buffer reflecting the current VS program's /* Creates a new VS constant buffer reflecting the current VS program's
* constants, if needed by the VS program. * constants, if needed by the VS program.

View File

@ -44,7 +44,6 @@
#include "brw_state.h" #include "brw_state.h"
#include "brw_draw.h" #include "brw_draw.h"
#include "brw_state.h" #include "brw_state.h"
#include "brw_fallback.h"
#include "brw_vs.h" #include "brw_vs.h"
#include "brw_wm.h" #include "brw_wm.h"

View File

@ -30,7 +30,6 @@
*/ */
#include "brw_context.h" #include "brw_context.h"
#include "brw_util.h"
#include "brw_wm.h" #include "brw_wm.h"
#include "brw_state.h" #include "brw_state.h"

View File

@ -38,7 +38,6 @@
#include "intel_reg.h" #include "intel_reg.h"
#include "intel_regions.h" #include "intel_regions.h"
#include "intel_batchbuffer.h" #include "intel_batchbuffer.h"
#include "intel_chipset.h"
#define FILE_DEBUG_FLAG DEBUG_BLIT #define FILE_DEBUG_FLAG DEBUG_BLIT

View File

@ -28,10 +28,8 @@
#include "intel_context.h" #include "intel_context.h"
#include "intel_buffers.h" #include "intel_buffers.h"
#include "intel_fbo.h" #include "intel_fbo.h"
#include "intel_regions.h"
#include "intel_batchbuffer.h" #include "intel_batchbuffer.h"
#include "main/framebuffer.h" #include "main/framebuffer.h"
#include "drirenderbuffer.h"
/** /**

View File

@ -33,12 +33,9 @@
#include "intel_context.h" #include "intel_context.h"
#include "intel_blit.h" #include "intel_blit.h"
#include "intel_chipset.h"
#include "intel_clear.h" #include "intel_clear.h"
#include "intel_fbo.h" #include "intel_fbo.h"
#include "intel_pixel.h"
#include "intel_regions.h" #include "intel_regions.h"
#include "intel_batchbuffer.h"
#define FILE_DEBUG_FLAG DEBUG_BLIT #define FILE_DEBUG_FLAG DEBUG_BLIT

View File

@ -28,7 +28,6 @@
#include "main/glheader.h" #include "main/glheader.h"
#include "main/context.h" #include "main/context.h"
#include "main/arrayobj.h"
#include "main/extensions.h" #include "main/extensions.h"
#include "main/framebuffer.h" #include "main/framebuffer.h"
#include "main/imports.h" #include "main/imports.h"

View File

@ -29,14 +29,7 @@
#include "main/state.h" #include "main/state.h"
#include "main/bufferobj.h" #include "main/bufferobj.h"
#include "main/context.h" #include "main/context.h"
#include "main/enable.h"
#include "main/matrix.h"
#include "main/texstate.h"
#include "main/varray.h"
#include "main/viewport.h"
#include "swrast/swrast.h" #include "swrast/swrast.h"
#include "shader/arbprogram.h"
#include "shader/program.h"
#include "intel_context.h" #include "intel_context.h"
#include "intel_pixel.h" #include "intel_pixel.h"

View File

@ -37,7 +37,6 @@
#include "main/polygon.h" #include "main/polygon.h"
#include "main/state.h" #include "main/state.h"
#include "main/teximage.h" #include "main/teximage.h"
#include "main/texenv.h"
#include "main/texobj.h" #include "main/texobj.h"
#include "main/texstate.h" #include "main/texstate.h"
#include "main/texparam.h" #include "main/texparam.h"
@ -53,7 +52,6 @@
#include "intel_batchbuffer.h" #include "intel_batchbuffer.h"
#include "intel_blit.h" #include "intel_blit.h"
#include "intel_regions.h" #include "intel_regions.h"
#include "intel_buffer_objects.h"
#include "intel_buffers.h" #include "intel_buffers.h"
#include "intel_pixel.h" #include "intel_pixel.h"
#include "intel_reg.h" #include "intel_reg.h"

View File

@ -46,10 +46,7 @@
#include "drivers/common/meta.h" #include "drivers/common/meta.h"
#include "intel_context.h" #include "intel_context.h"
#include "intel_batchbuffer.h"
#include "intel_blit.h"
#include "intel_buffers.h" #include "intel_buffers.h"
#include "intel_regions.h"
#include "intel_pixel.h" #include "intel_pixel.h"
#include "intel_fbo.h" #include "intel_fbo.h"

View File

@ -36,7 +36,6 @@
#include "intel_screen.h" #include "intel_screen.h"
#include "intel_context.h" #include "intel_context.h"
#include "intel_batchbuffer.h"
#include "intel_blit.h" #include "intel_blit.h"
#include "intel_buffers.h" #include "intel_buffers.h"
#include "intel_regions.h" #include "intel_regions.h"

View File

@ -48,7 +48,6 @@
#include "intel_buffer_objects.h" #include "intel_buffer_objects.h"
#include "intel_bufmgr.h" #include "intel_bufmgr.h"
#include "intel_batchbuffer.h" #include "intel_batchbuffer.h"
#include "intel_chipset.h"
#define FILE_DEBUG_FLAG DEBUG_REGION #define FILE_DEBUG_FLAG DEBUG_REGION

View File

@ -37,11 +37,9 @@
#include "intel_buffers.h" #include "intel_buffers.h"
#include "intel_bufmgr.h" #include "intel_bufmgr.h"
#include "intel_chipset.h" #include "intel_chipset.h"
#include "intel_extensions.h"
#include "intel_fbo.h" #include "intel_fbo.h"
#include "intel_regions.h" #include "intel_regions.h"
#include "intel_screen.h" #include "intel_screen.h"
#include "intel_span.h"
#include "intel_tex.h" #include "intel_tex.h"
#include "i915_drm.h" #include "i915_drm.h"

View File

@ -35,8 +35,6 @@
#include "intel_screen.h" #include "intel_screen.h"
#include "intel_context.h" #include "intel_context.h"
#include "intel_regions.h"
#include "swrast/swrast.h"
int int
intel_translate_shadow_compare_func(GLenum func) intel_translate_shadow_compare_func(GLenum func)

View File

@ -36,7 +36,6 @@
#include "intel_screen.h" #include "intel_screen.h"
#include "intel_context.h" #include "intel_context.h"
#include "intel_batchbuffer.h"
#include "intel_buffers.h" #include "intel_buffers.h"
#include "intel_mipmap_tree.h" #include "intel_mipmap_tree.h"
#include "intel_regions.h" #include "intel_regions.h"

View File

@ -7,7 +7,6 @@
#include "main/convolve.h" #include "main/convolve.h"
#include "main/context.h" #include "main/context.h"
#include "main/formats.h" #include "main/formats.h"
#include "main/image.h"
#include "main/texcompress.h" #include "main/texcompress.h"
#include "main/texstore.h" #include "main/texstore.h"
#include "main/texgetimage.h" #include "main/texgetimage.h"

View File

@ -2,10 +2,8 @@
#include "main/macros.h" #include "main/macros.h"
#include "intel_context.h" #include "intel_context.h"
#include "intel_batchbuffer.h"
#include "intel_mipmap_tree.h" #include "intel_mipmap_tree.h"
#include "intel_tex.h" #include "intel_tex.h"
#include "intel_chipset.h"
#define FILE_DEBUG_FLAG DEBUG_TEXTURE #define FILE_DEBUG_FLAG DEBUG_TEXTURE

View File

@ -35,7 +35,6 @@
#include "mga_drm.h" #include "mga_drm.h"
#include "mga_xmesa.h" #include "mga_xmesa.h"
#include "main/context.h" #include "main/context.h"
#include "main/matrix.h"
#include "main/simple_list.h" #include "main/simple_list.h"
#include "main/imports.h" #include "main/imports.h"
#include "main/framebuffer.h" #include "main/framebuffer.h"
@ -64,7 +63,6 @@
#include "utils.h" #include "utils.h"
#include "vblank.h" #include "vblank.h"
#include "main/extensions.h"
#include "drirenderbuffer.h" #include "drirenderbuffer.h"
#include "GL/internal/dri_interface.h" #include "GL/internal/dri_interface.h"

View File

@ -32,11 +32,6 @@
#include "mgacontext.h" #include "mgacontext.h"
#include "mgadd.h" #include "mgadd.h"
#include "mgastate.h"
#include "mgaspan.h"
#include "mgatex.h"
#include "mgatris.h"
#include "mgavb.h"
#include "mga_xmesa.h" #include "mga_xmesa.h"
#include "utils.h" #include "utils.h"

View File

@ -42,10 +42,7 @@
#include "mgacontext.h" #include "mgacontext.h"
#include "mgadd.h" #include "mgadd.h"
#include "mgastate.h" #include "mgastate.h"
#include "mgatex.h"
#include "mgavb.h"
#include "mgaioctl.h" #include "mgaioctl.h"
#include "mgatris.h"
#include "vblank.h" #include "vblank.h"

View File

@ -48,7 +48,6 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "mgacontext.h" #include "mgacontext.h"
#include "mgatris.h" #include "mgatris.h"
#include "mgastate.h"
#include "mgaioctl.h" #include "mgaioctl.h"
#include "mgavb.h" #include "mgavb.h"

View File

@ -40,11 +40,8 @@
#include "mgacontext.h" #include "mgacontext.h"
#include "mgatex.h" #include "mgatex.h"
#include "mgaregs.h" #include "mgaregs.h"
#include "mgatris.h"
#include "mgaioctl.h" #include "mgaioctl.h"
#include "swrast/swrast.h"
#include "xmlpool.h" #include "xmlpool.h"
/** /**

View File

@ -38,7 +38,6 @@
#include "mgaioctl.h" #include "mgaioctl.h"
#include "mgatris.h" #include "mgatris.h"
#include "mgavb.h" #include "mgavb.h"
#include "mgastate.h"
static void mgaRenderPrimitive( GLcontext *ctx, GLenum prim ); static void mgaRenderPrimitive( GLcontext *ctx, GLenum prim );

View File

@ -39,7 +39,6 @@
#include "main/colormac.h" #include "main/colormac.h"
#include "tnl/t_context.h" #include "tnl/t_context.h"
#include "swrast_setup/swrast_setup.h"
#include "swrast/swrast.h" #include "swrast/swrast.h"

View File

@ -437,7 +437,7 @@ static GLboolean r200_translate_vertex_program(GLcontext *ctx, struct r200_verte
(1 << VERT_RESULT_TEX2) | (1 << VERT_RESULT_TEX3) | (1 << VERT_RESULT_TEX4) | (1 << VERT_RESULT_TEX2) | (1 << VERT_RESULT_TEX3) | (1 << VERT_RESULT_TEX4) |
(1 << VERT_RESULT_TEX5) | (1 << VERT_RESULT_PSIZ))) != 0) { (1 << VERT_RESULT_TEX5) | (1 << VERT_RESULT_PSIZ))) != 0) {
if (R200_DEBUG & RADEON_FALLBACKS) { if (R200_DEBUG & RADEON_FALLBACKS) {
fprintf(stderr, "can't handle vert prog outputs 0x%x\n", fprintf(stderr, "can't handle vert prog outputs 0x%llx\n",
mesa_vp->Base.OutputsWritten); mesa_vp->Base.OutputsWritten);
} }
return GL_FALSE; return GL_FALSE;

View File

@ -39,7 +39,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "main/macros.h" #include "main/macros.h"
#include "main/context.h" #include "main/context.h"
#include "main/simple_list.h" #include "main/simple_list.h"
#include "swrast/swrast.h"
#include "drm.h" #include "drm.h"
#include "radeon_drm.h" #include "radeon_drm.h"
@ -50,7 +49,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "r300_emit.h" #include "r300_emit.h"
#include "radeon_bocs_wrapper.h" #include "radeon_bocs_wrapper.h"
#include "radeon_mipmap_tree.h" #include "radeon_mipmap_tree.h"
#include "r300_state.h"
#include "radeon_queryobj.h" #include "radeon_queryobj.h"
/** # of dwords reserved for additional instructions that may need to be written /** # of dwords reserved for additional instructions that may need to be written

View File

@ -40,9 +40,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "main/context.h" #include "main/context.h"
#include "main/simple_list.h" #include "main/simple_list.h"
#include "main/imports.h" #include "main/imports.h"
#include "main/matrix.h"
#include "main/extensions.h" #include "main/extensions.h"
#include "main/state.h"
#include "main/bufferobj.h" #include "main/bufferobj.h"
#include "main/texobj.h" #include "main/texobj.h"
@ -52,13 +50,11 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "tnl/tnl.h" #include "tnl/tnl.h"
#include "tnl/t_pipeline.h" #include "tnl/t_pipeline.h"
#include "tnl/t_vp_build.h"
#include "drivers/common/driverfuncs.h" #include "drivers/common/driverfuncs.h"
#include "drivers/common/meta.h" #include "drivers/common/meta.h"
#include "r300_context.h" #include "r300_context.h"
#include "radeon_context.h"
#include "radeon_span.h" #include "radeon_span.h"
#include "r300_blit.h" #include "r300_blit.h"
#include "r300_cmdbuf.h" #include "r300_cmdbuf.h"
@ -70,7 +66,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "radeon_buffer_objects.h" #include "radeon_buffer_objects.h"
#include "radeon_queryobj.h" #include "radeon_queryobj.h"
#include "vblank.h"
#include "utils.h" #include "utils.h"
#include "xmlpool.h" /* for symbolic values of enum-type options */ #include "xmlpool.h" /* for symbolic values of enum-type options */

View File

@ -29,7 +29,6 @@
#include "main/glheader.h" #include "main/glheader.h"
#include "main/context.h" #include "main/context.h"
#include "main/state.h" #include "main/state.h"
#include "main/api_validate.h"
#include "main/enums.h" #include "main/enums.h"
#include "main/simple_list.h" #include "main/simple_list.h"
@ -47,8 +46,6 @@
#include "tnl/tnl.h" #include "tnl/tnl.h"
#include "tnl/t_vp_build.h" #include "tnl/t_vp_build.h"
#include "vbo/vbo_context.h" #include "vbo/vbo_context.h"
#include "swrast/swrast.h"
#include "swrast_setup/swrast_setup.h"
static int getTypeSize(GLenum type) static int getTypeSize(GLenum type)

View File

@ -39,19 +39,17 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "main/colormac.h" #include "main/colormac.h"
#include "main/imports.h" #include "main/imports.h"
#include "main/macros.h" #include "main/macros.h"
#include "main/image.h"
#include "swrast_setup/swrast_setup.h" #include "swrast_setup/swrast_setup.h"
#include "math/m_translate.h"
#include "tnl/tnl.h" #include "tnl/tnl.h"
#include "tnl/t_context.h" #include "tnl/t_context.h"
#include "r300_context.h" #include "r300_context.h"
#include "r300_state.h"
#include "r300_emit.h" #include "r300_emit.h"
#include "r300_render.h" #include "r300_render.h"
#include "r300_swtcl.h" #include "r300_swtcl.h"
GLuint r300VAPInputCntl0(GLcontext * ctx, GLuint InputsRead) GLuint r300VAPInputCntl0(GLcontext * ctx, GLuint InputsRead)
{ {
/* No idea what this value means. I have seen other values written to /* No idea what this value means. I have seen other values written to

View File

@ -38,14 +38,12 @@
#include "r300_fragprog_common.h" #include "r300_fragprog_common.h"
#include "shader/program.h"
#include "shader/prog_parameter.h" #include "shader/prog_parameter.h"
#include "shader/prog_print.h" #include "shader/prog_print.h"
#include "compiler/radeon_compiler.h" #include "compiler/radeon_compiler.h"
#include "radeon_mesa_to_rc.h" #include "radeon_mesa_to_rc.h"
#include "r300_state.h"
static GLuint build_dtm(GLuint depthmode) static GLuint build_dtm(GLuint depthmode)

View File

@ -53,7 +53,6 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "r300_render.h" #include "r300_render.h"
#include "main/glheader.h" #include "main/glheader.h"
#include "main/state.h"
#include "main/imports.h" #include "main/imports.h"
#include "main/enums.h" #include "main/enums.h"
#include "main/macros.h" #include "main/macros.h"
@ -65,14 +64,10 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "swrast_setup/swrast_setup.h" #include "swrast_setup/swrast_setup.h"
#include "vbo/vbo.h" #include "vbo/vbo.h"
#include "vbo/vbo_split.h" #include "vbo/vbo_split.h"
#include "tnl/tnl.h"
#include "tnl/t_vp_build.h"
#include "r300_context.h" #include "r300_context.h"
#include "r300_state.h" #include "r300_state.h"
#include "r300_reg.h" #include "r300_reg.h"
#include "r300_tex.h"
#include "r300_emit.h" #include "r300_emit.h"
#include "r300_fragprog_common.h"
#include "r300_swtcl.h" #include "r300_swtcl.h"
/** /**

View File

@ -58,13 +58,10 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "r300_state.h" #include "r300_state.h"
#include "r300_reg.h" #include "r300_reg.h"
#include "r300_emit.h" #include "r300_emit.h"
#include "r300_tex.h"
#include "r300_fragprog_common.h" #include "r300_fragprog_common.h"
#include "r300_render.h" #include "r300_render.h"
#include "r300_vertprog.h" #include "r300_vertprog.h"
#include "drirenderbuffer.h"
static void r300BlendColor(GLcontext * ctx, const GLfloat cf[4]) static void r300BlendColor(GLcontext * ctx, const GLfloat cf[4])
{ {
r300ContextPtr rmesa = R300_CONTEXT(ctx); r300ContextPtr rmesa = R300_CONTEXT(ctx);

View File

@ -41,18 +41,14 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "main/mipmap.h" #include "main/mipmap.h"
#include "main/simple_list.h" #include "main/simple_list.h"
#include "main/texstore.h" #include "main/texstore.h"
#include "main/teximage.h"
#include "main/texobj.h" #include "main/texobj.h"
#include "texmem.h" #include "texmem.h"
#include "r300_context.h" #include "r300_context.h"
#include "r300_state.h"
#include "radeon_mipmap_tree.h" #include "radeon_mipmap_tree.h"
#include "r300_tex.h" #include "r300_tex.h"
#include "xmlpool.h"
static unsigned int translate_wrap_mode(GLenum wrapmode) static unsigned int translate_wrap_mode(GLenum wrapmode)
{ {

View File

@ -45,7 +45,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "main/simple_list.h" #include "main/simple_list.h"
#include "r300_context.h" #include "r300_context.h"
#include "r300_state.h"
#include "radeon_mipmap_tree.h" #include "radeon_mipmap_tree.h"
#include "r300_tex.h" #include "r300_tex.h"
#include "r300_reg.h" #include "r300_reg.h"

View File

@ -34,7 +34,6 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "shader/program.h" #include "shader/program.h"
#include "shader/programopt.h" #include "shader/programopt.h"
#include "shader/prog_instruction.h" #include "shader/prog_instruction.h"
#include "shader/prog_optimize.h"
#include "shader/prog_parameter.h" #include "shader/prog_parameter.h"
#include "shader/prog_print.h" #include "shader/prog_print.h"
#include "shader/prog_statevars.h" #include "shader/prog_statevars.h"

View File

@ -180,7 +180,6 @@ static int cs_begin(struct radeon_cs_int *cs,
if (cs->cdw + ndw > cs->ndw) { if (cs->cdw + ndw > cs->ndw) {
uint32_t tmp, *ptr; uint32_t tmp, *ptr;
int num = (ndw > 0x3FF) ? ndw : 0x3FF;
tmp = (cs->cdw + ndw + 0x3ff) & (~0x3ff); tmp = (cs->cdw + ndw + 0x3ff) & (~0x3ff);
ptr = (uint32_t*)realloc(cs->packets, 4 * tmp); ptr = (uint32_t*)realloc(cs->packets, 4 * tmp);

View File

@ -29,15 +29,11 @@
#include <stdio.h> #include <stdio.h>
#include "main/mm.h" #include "main/mm.h"
#include "swrast/swrast.h"
#include "savagedd.h" #include "savagedd.h"
#include "savagestate.h" #include "savagestate.h"
#include "savagespan.h"
#include "savagetex.h" #include "savagetex.h"
#include "savagetris.h"
#include "savagecontext.h" #include "savagecontext.h"
#include "main/extensions.h"
#include "utils.h" #include "utils.h"

View File

@ -37,12 +37,10 @@
#include "savagecontext.h" #include "savagecontext.h"
#include "savageioctl.h" #include "savageioctl.h"
#include "savage_bci.h"
#include "savagestate.h" #include "savagestate.h"
#include "savagespan.h" #include "savagespan.h"
#include "drm.h" #include "drm.h"
#include <sys/ioctl.h>
#include <sys/timeb.h> #include <sys/timeb.h>
#define DEPTH_SCALE_16 ((1<<16)-1) #define DEPTH_SCALE_16 ((1<<16)-1)

View File

@ -36,7 +36,6 @@
#include "tnl/t_context.h" #include "tnl/t_context.h"
#include "savagecontext.h" #include "savagecontext.h"
#include "savagetris.h"
#include "savagestate.h" #include "savagestate.h"
#include "savageioctl.h" #include "savageioctl.h"

View File

@ -26,7 +26,6 @@
#include "savagedd.h" #include "savagedd.h"
#include "savagespan.h" #include "savagespan.h"
#include "savageioctl.h" #include "savageioctl.h"
#include "savage_bci.h"
#include "savage_3d_reg.h" #include "savage_3d_reg.h"
#include "swrast/swrast.h" #include "swrast/swrast.h"

View File

@ -33,8 +33,6 @@
#include "main/simple_list.h" #include "main/simple_list.h"
#include "main/enums.h" #include "main/enums.h"
#include "swrast/swrast.h"
#include "savagecontext.h" #include "savagecontext.h"
#include "savagetex.h" #include "savagetex.h"
#include "savagetris.h" #include "savagetris.h"

View File

@ -52,7 +52,6 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "savagestate.h" #include "savagestate.h"
#include "savagetex.h" #include "savagetex.h"
#include "savageioctl.h" #include "savageioctl.h"
#include "savage_bci.h"
static void savageRasterPrimitive( GLcontext *ctx, GLuint prim ); static void savageRasterPrimitive( GLcontext *ctx, GLuint prim );
static void savageRenderPrimitive( GLcontext *ctx, GLenum prim ); static void savageRenderPrimitive( GLcontext *ctx, GLenum prim );

View File

@ -34,14 +34,12 @@
#include "sis_reg.h" #include "sis_reg.h"
#include "main/context.h" #include "main/context.h"
#include "main/enums.h"
#include "main/colormac.h" #include "main/colormac.h"
#include "swrast/swrast.h" #include "swrast/swrast.h"
#include "vbo/vbo.h" #include "vbo/vbo.h"
#include "tnl/tnl.h" #include "tnl/tnl.h"
#include "swrast_setup/swrast_setup.h" #include "swrast_setup/swrast_setup.h"
#include "tnl/t_pipeline.h"
/* ============================================================= /* =============================================================
* Alpha blending * Alpha blending

View File

@ -43,8 +43,6 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "sis_alloc.h" #include "sis_alloc.h"
#include "main/imports.h" #include "main/imports.h"
#include "main/matrix.h"
#include "main/extensions.h"
#include "utils.h" #include "utils.h"
#include "main/framebuffer.h" #include "main/framebuffer.h"
@ -55,7 +53,6 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "vbo/vbo.h" #include "vbo/vbo.h"
#include "tnl/tnl.h" #include "tnl/tnl.h"
#include "tnl/t_pipeline.h"
#define need_GL_EXT_fog_coord #define need_GL_EXT_fog_coord
#define need_GL_EXT_secondary_color #define need_GL_EXT_secondary_color

View File

@ -40,9 +40,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "sis_state.h" #include "sis_state.h"
#include "sis_tris.h" #include "sis_tris.h"
#include "swrast/swrast.h"
#include "main/formats.h" #include "main/formats.h"
#include "main/framebuffer.h"
#include "main/renderbuffer.h" #include "main/renderbuffer.h"
#include "utils.h" #include "utils.h"

View File

@ -33,7 +33,6 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "sis_context.h" #include "sis_context.h"
#include "sis_state.h" #include "sis_state.h"
#include "swrast/swrast.h"
#include "main/macros.h" #include "main/macros.h"

View File

@ -39,7 +39,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "sis_context.h" #include "sis_context.h"
#include "sis_dri.h" #include "sis_dri.h"
#include "sis_lock.h" #include "sis_lock.h"
#include "sis_span.h"
#include "xmlpool.h" #include "xmlpool.h"

View File

@ -35,17 +35,13 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "sis_state.h" #include "sis_state.h"
#include "sis_tris.h" #include "sis_tris.h"
#include "sis_lock.h" #include "sis_lock.h"
#include "sis_tex.h"
#include "main/context.h" #include "main/context.h"
#include "main/enums.h"
#include "main/colormac.h"
#include "swrast/swrast.h" #include "swrast/swrast.h"
#include "vbo/vbo.h" #include "vbo/vbo.h"
#include "tnl/tnl.h" #include "tnl/tnl.h"
#include "swrast_setup/swrast_setup.h" #include "swrast_setup/swrast_setup.h"
#include "tnl/t_pipeline.h"
/* ============================================================= /* =============================================================
* Alpha blending * Alpha blending

View File

@ -31,7 +31,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "swrast/swrast.h" #include "swrast/swrast.h"
#include "main/imports.h" #include "main/imports.h"
#include "main/texstore.h" #include "main/texstore.h"
#include "main/teximage.h"
#include "main/texobj.h" #include "main/texobj.h"
#include "sis_context.h" #include "sis_context.h"

View File

@ -38,7 +38,6 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "main/macros.h" #include "main/macros.h"
#include "sis_context.h" #include "sis_context.h"
#include "sis_state.h"
#include "sis_tex.h" #include "sis_tex.h"
#include "sis_tris.h" #include "sis_tris.h"
#include "sis_alloc.h" #include "sis_alloc.h"

View File

@ -47,7 +47,6 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "sis_state.h" #include "sis_state.h"
#include "sis_lock.h" #include "sis_lock.h"
#include "sis_span.h" #include "sis_span.h"
#include "sis_alloc.h"
#include "sis_tex.h" #include "sis_tex.h"
/* 6326 and 300-series shared */ /* 6326 and 300-series shared */

View File

@ -35,17 +35,10 @@
#include "tdfx_context.h" #include "tdfx_context.h"
#include "tdfx_dd.h" #include "tdfx_dd.h"
#include "tdfx_lock.h" #include "tdfx_lock.h"
#include "tdfx_vb.h"
#include "tdfx_pixels.h" #include "tdfx_pixels.h"
#include "utils.h" #include "utils.h"
#include "main/context.h" #include "main/context.h"
#include "main/enums.h"
#include "main/framebuffer.h"
#include "swrast/swrast.h"
#if defined(USE_X86_ASM)
#include "x86/common_x86_asm.h"
#endif
#define DRIVER_DATE "20061113" #define DRIVER_DATE "20061113"

View File

@ -38,7 +38,6 @@
#include "tdfx_state.h" #include "tdfx_state.h"
#include "tdfx_render.h" #include "tdfx_render.h"
#include "tdfx_texman.h" #include "tdfx_texman.h"
#include "tdfx_tris.h"
#include "drirenderbuffer.h" #include "drirenderbuffer.h"

View File

@ -38,7 +38,6 @@
#include "tdfx_context.h" #include "tdfx_context.h"
#include "tdfx_dd.h" #include "tdfx_dd.h"
#include "tdfx_lock.h" #include "tdfx_lock.h"
#include "tdfx_vb.h"
#include "tdfx_pixels.h" #include "tdfx_pixels.h"
#include "tdfx_render.h" #include "tdfx_render.h"

View File

@ -36,9 +36,7 @@
#include "tdfx_dri.h" #include "tdfx_dri.h"
#include "tdfx_context.h" #include "tdfx_context.h"
#include "tdfx_lock.h" #include "tdfx_lock.h"
#include "tdfx_vb.h"
#include "tdfx_span.h" #include "tdfx_span.h"
#include "tdfx_tris.h"
#include "main/framebuffer.h" #include "main/framebuffer.h"
#include "main/renderbuffer.h" #include "main/renderbuffer.h"

View File

@ -40,8 +40,6 @@
#include "main/mtypes.h" #include "main/mtypes.h"
#include "main/colormac.h" #include "main/colormac.h"
#include "main/texstore.h"
#include "main/teximage.h"
#include "swrast/swrast.h" #include "swrast/swrast.h"
#include "vbo/vbo.h" #include "vbo/vbo.h"
@ -51,11 +49,9 @@
#include "tdfx_context.h" #include "tdfx_context.h"
#include "tdfx_state.h" #include "tdfx_state.h"
#include "tdfx_vb.h"
#include "tdfx_tex.h" #include "tdfx_tex.h"
#include "tdfx_texman.h" #include "tdfx_texman.h"
#include "tdfx_texstate.h" #include "tdfx_texstate.h"
#include "tdfx_tris.h"
#include "tdfx_render.h" #include "tdfx_render.h"

View File

@ -35,7 +35,6 @@
*/ */
#include "tdfx_context.h" #include "tdfx_context.h"
#include "tdfx_tex.h"
#include "tdfx_texman.h" #include "tdfx_texman.h"
#include "main/texobj.h" #include "main/texobj.h"
#include "main/hash.h" #include "main/hash.h"

View File

@ -38,7 +38,6 @@
*/ */
#include "tdfx_state.h" #include "tdfx_state.h"
#include "tdfx_tex.h"
#include "tdfx_texman.h" #include "tdfx_texman.h"
#include "tdfx_texstate.h" #include "tdfx_texstate.h"

View File

@ -29,13 +29,8 @@
#include "main/macros.h" #include "main/macros.h"
#include "main/colormac.h" #include "main/colormac.h"
#include "math/m_translate.h"
#include "swrast_setup/swrast_setup.h"
#include "tdfx_context.h" #include "tdfx_context.h"
#include "tdfx_vb.h" #include "tdfx_vb.h"
#include "tdfx_tris.h"
#include "tdfx_state.h"
#include "tdfx_render.h" #include "tdfx_render.h"
static void copy_pv( GLcontext *ctx, GLuint edst, GLuint esrc ) static void copy_pv( GLcontext *ctx, GLuint edst, GLuint esrc )

View File

@ -73,7 +73,7 @@ class PrintGenericStubs(gl_XML.gl_print_base):
print '' print ''
print '#define GL_OFFSET(x) CODEPTR(REGOFF(4 * x, EAX))' print '#define GL_OFFSET(x) CODEPTR(REGOFF(4 * x, EAX))'
print '' print ''
print '#if defined(GNU_ASSEMBLER) && !defined(__DJGPP__) && !defined(__MINGW32__)' print '#if defined(GNU_ASSEMBLER) && !defined(__DJGPP__) && !defined(__MINGW32__) && !defined(__APPLE__)'
print '#define GLOBL_FN(x) GLOBL x ; .type x, function' print '#define GLOBL_FN(x) GLOBL x ; .type x, function'
print '#else' print '#else'
print '#define GLOBL_FN(x) GLOBL x' print '#define GLOBL_FN(x) GLOBL x'

View File

@ -37,14 +37,14 @@ _mesa_Scissor( GLint x, GLint y, GLsizei width, GLsizei height )
GET_CURRENT_CONTEXT(ctx); GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END(ctx); ASSERT_OUTSIDE_BEGIN_END(ctx);
if (MESA_VERBOSE & VERBOSE_API)
_mesa_debug(ctx, "glScissor %d %d %d %d\n", x, y, width, height);
if (width < 0 || height < 0) { if (width < 0 || height < 0) {
_mesa_error( ctx, GL_INVALID_VALUE, "glScissor" ); _mesa_error( ctx, GL_INVALID_VALUE, "glScissor" );
return; return;
} }
if (MESA_VERBOSE & VERBOSE_API)
_mesa_debug(ctx, "glScissor %d %d %d %d\n", x, y, width, height);
_mesa_set_scissor(ctx, x, y, width, height); _mesa_set_scissor(ctx, x, y, width, height);
} }

View File

@ -31,6 +31,7 @@
*/ */
#include "main/macros.h"
#include "st_context.h" #include "st_context.h"
#include "pipe/p_context.h" #include "pipe/p_context.h"
#include "st_atom.h" #include "st_atom.h"
@ -52,15 +53,19 @@ update_scissor( struct st_context *st )
scissor.maxy = fb->Height; scissor.maxy = fb->Height;
if (st->ctx->Scissor.Enabled) { if (st->ctx->Scissor.Enabled) {
if ((GLuint)st->ctx->Scissor.X > scissor.minx) /* need to be careful here with xmax or ymax < 0 */
GLint xmax = MAX2(0, st->ctx->Scissor.X + st->ctx->Scissor.Width);
GLint ymax = MAX2(0, st->ctx->Scissor.Y + st->ctx->Scissor.Height);
if (st->ctx->Scissor.X > (GLint)scissor.minx)
scissor.minx = st->ctx->Scissor.X; scissor.minx = st->ctx->Scissor.X;
if ((GLuint)st->ctx->Scissor.Y > scissor.miny) if (st->ctx->Scissor.Y > (GLint)scissor.miny)
scissor.miny = st->ctx->Scissor.Y; scissor.miny = st->ctx->Scissor.Y;
if ((GLuint)st->ctx->Scissor.X + st->ctx->Scissor.Width < scissor.maxx) if (xmax < (GLint) scissor.maxx)
scissor.maxx = st->ctx->Scissor.X + st->ctx->Scissor.Width; scissor.maxx = xmax;
if ((GLuint)st->ctx->Scissor.Y + st->ctx->Scissor.Height < scissor.maxy) if (ymax < (GLint) scissor.maxy)
scissor.maxy = st->ctx->Scissor.Y + st->ctx->Scissor.Height; scissor.maxy = ymax;
/* check for null space */ /* check for null space */
if (scissor.minx >= scissor.maxx || scissor.miny >= scissor.maxy) if (scissor.minx >= scissor.maxx || scissor.miny >= scissor.maxy)

View File

@ -1735,9 +1735,9 @@ SECTION _DATA public align=16 class=DATA use32 flat
* If we build with gcc's -fvisibility=hidden flag, we'll need to change * If we build with gcc's -fvisibility=hidden flag, we'll need to change
* the symbol visibility mode to 'default'. * the symbol visibility mode to 'default'.
*/ */
#if defined(GNU_ASSEMBLER) && !defined(__DJGPP__) && !defined(__MINGW32__) #if defined(GNU_ASSEMBLER) && !defined(__DJGPP__) && !defined(__MINGW32__) && !defined(__APPLE__)
# define HIDDEN(x) .hidden x # define HIDDEN(x) .hidden x
#elif defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303 && !defined(__DJGPP__) && !defined(__MINGW32__) #elif defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303 && !defined(__DJGPP__) && !defined(__MINGW32__) && !defined(__APPLE__)
# pragma GCC visibility push(default) # pragma GCC visibility push(default)
# define HIDDEN(x) .hidden x # define HIDDEN(x) .hidden x
#else #else

View File

@ -46,7 +46,7 @@
#define GL_OFFSET(x) CODEPTR(REGOFF(4 * x, EAX)) #define GL_OFFSET(x) CODEPTR(REGOFF(4 * x, EAX))
#if defined(GNU_ASSEMBLER) && !defined(__DJGPP__) && !defined(__MINGW32__) #if defined(GNU_ASSEMBLER) && !defined(__DJGPP__) && !defined(__MINGW32__) && !defined(__APPLE__)
#define GLOBL_FN(x) GLOBL x ; .type x, function #define GLOBL_FN(x) GLOBL x ; .type x, function
#else #else
#define GLOBL_FN(x) GLOBL x #define GLOBL_FN(x) GLOBL x

View File

@ -31,7 +31,7 @@
*/ */
.file "read_rgba_span_x86.S" .file "read_rgba_span_x86.S"
#if !defined(__DJGPP__) && !defined(__MINGW32__) /* this one cries for assyntax.h */ #if !defined(__DJGPP__) && !defined(__MINGW32__) && !defined(__APPLE__) /* this one cries for assyntax.h */
/* Kevin F. Quinn 2nd July 2006 /* Kevin F. Quinn 2nd July 2006
* Replaced data segment constants with text-segment instructions. * Replaced data segment constants with text-segment instructions.
*/ */
@ -671,7 +671,7 @@ _generic_read_RGBA_span_RGB565_MMX:
emms emms
#endif #endif
ret ret
#endif /* !defined(__DJGPP__) && !defined(__MINGW32__) */ #endif /* !defined(__DJGPP__) && !defined(__MINGW32__) && !defined(__APPLE__) */
#if defined (__ELF__) && defined (__linux__) #if defined (__ELF__) && defined (__linux__)
.section .note.GNU-stack,"",%progbits .section .note.GNU-stack,"",%progbits