Merge commit 'mesa_7_6_branch' into mesa_7_7_branch
Conflicts: src/mesa/main/version.h
This commit is contained in:
@@ -4,7 +4,7 @@ TOP = ..
|
|||||||
|
|
||||||
include $(TOP)/configs/current
|
include $(TOP)/configs/current
|
||||||
|
|
||||||
SUBDIRS = "$(strip "$(PROGRAM_DIRS)")"
|
SUBDIRS = $(PROGRAM_DIRS)
|
||||||
|
|
||||||
|
|
||||||
default: message subdirs
|
default: message subdirs
|
||||||
@@ -15,22 +15,18 @@ message:
|
|||||||
|
|
||||||
|
|
||||||
subdirs:
|
subdirs:
|
||||||
@if test -n "$(SUBDIRS)" ; then \
|
@list='$(SUBDIRS)'; for dir in $$list ; do \
|
||||||
for dir in $(SUBDIRS) ; do \
|
|
||||||
if [ -d $$dir ] ; then \
|
if [ -d $$dir ] ; then \
|
||||||
(cd $$dir && $(MAKE)) || exit 1 ; \
|
(cd $$dir && $(MAKE)) || exit 1 ; \
|
||||||
fi \
|
fi \
|
||||||
done \
|
done
|
||||||
fi
|
|
||||||
|
|
||||||
# Dummy install target
|
# Dummy install target
|
||||||
install:
|
install:
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-@if test -n "$(SUBDIRS)" ; then \
|
@list='$(SUBDIRS)'; for dir in $$list tests ; do \
|
||||||
for dir in $(SUBDIRS) tests ; do \
|
|
||||||
if [ -d $$dir ] ; then \
|
if [ -d $$dir ] ; then \
|
||||||
(cd $$dir && $(MAKE) clean) ; \
|
(cd $$dir && $(MAKE) clean) ; \
|
||||||
fi \
|
fi \
|
||||||
done \
|
done
|
||||||
fi
|
|
||||||
|
@@ -15,8 +15,6 @@
|
|||||||
|
|
||||||
#define DEPTH 5.0f
|
#define DEPTH 5.0f
|
||||||
|
|
||||||
static PFNGLFOGCOORDPOINTEREXTPROC glFogCoordPointer_ext;
|
|
||||||
|
|
||||||
static GLfloat camz;
|
static GLfloat camz;
|
||||||
|
|
||||||
static GLint fogMode;
|
static GLint fogMode;
|
||||||
|
@@ -291,6 +291,7 @@ xm_surface_buffer_create(struct pipe_winsys *winsys,
|
|||||||
unsigned width, unsigned height,
|
unsigned width, unsigned height,
|
||||||
enum pipe_format format,
|
enum pipe_format format,
|
||||||
unsigned usage,
|
unsigned usage,
|
||||||
|
unsigned tex_usage,
|
||||||
unsigned *stride)
|
unsigned *stride)
|
||||||
{
|
{
|
||||||
const unsigned alignment = 64;
|
const unsigned alignment = 64;
|
||||||
|
@@ -121,7 +121,6 @@ static const struct dri_extension card_extensions[] = {
|
|||||||
{ "GL_MESA_pack_invert", NULL },
|
{ "GL_MESA_pack_invert", NULL },
|
||||||
{ "GL_MESA_ycbcr_texture", NULL },
|
{ "GL_MESA_ycbcr_texture", NULL },
|
||||||
{ "GL_NV_blend_square", NULL },
|
{ "GL_NV_blend_square", NULL },
|
||||||
{ "GL_NV_point_sprite", GL_NV_point_sprite_functions },
|
|
||||||
{ "GL_NV_vertex_program", GL_NV_vertex_program_functions },
|
{ "GL_NV_vertex_program", GL_NV_vertex_program_functions },
|
||||||
{ "GL_NV_vertex_program1_1", NULL },
|
{ "GL_NV_vertex_program1_1", NULL },
|
||||||
{ "GL_SGIS_generate_mipmap", NULL },
|
{ "GL_SGIS_generate_mipmap", NULL },
|
||||||
|
@@ -325,7 +325,7 @@ GLboolean r200CreateContext( const __GLcontextModes *glVisual,
|
|||||||
_mesa_init_driver_functions(&functions);
|
_mesa_init_driver_functions(&functions);
|
||||||
r200InitDriverFuncs(&functions);
|
r200InitDriverFuncs(&functions);
|
||||||
r200InitIoctlFuncs(&functions);
|
r200InitIoctlFuncs(&functions);
|
||||||
r200InitStateFuncs(&functions, screen->kernel_mm);
|
r200InitStateFuncs(&functions);
|
||||||
r200InitTextureFuncs(&functions);
|
r200InitTextureFuncs(&functions);
|
||||||
r200InitShaderFuncs(&functions);
|
r200InitShaderFuncs(&functions);
|
||||||
radeonInitQueryObjFunctions(&functions);
|
radeonInitQueryObjFunctions(&functions);
|
||||||
|
@@ -2476,7 +2476,7 @@ static void r200PolygonStipple( GLcontext *ctx, const GLubyte *mask )
|
|||||||
}
|
}
|
||||||
/* Initialize the driver's state functions.
|
/* Initialize the driver's state functions.
|
||||||
*/
|
*/
|
||||||
void r200InitStateFuncs( struct dd_function_table *functions, GLboolean dri2 )
|
void r200InitStateFuncs( struct dd_function_table *functions )
|
||||||
{
|
{
|
||||||
functions->UpdateState = r200InvalidateState;
|
functions->UpdateState = r200InvalidateState;
|
||||||
functions->LightingSpaceChange = r200LightingSpaceChange;
|
functions->LightingSpaceChange = r200LightingSpaceChange;
|
||||||
@@ -2510,10 +2510,7 @@ void r200InitStateFuncs( struct dd_function_table *functions, GLboolean dri2 )
|
|||||||
functions->LogicOpcode = r200LogicOpCode;
|
functions->LogicOpcode = r200LogicOpCode;
|
||||||
functions->PolygonMode = r200PolygonMode;
|
functions->PolygonMode = r200PolygonMode;
|
||||||
functions->PolygonOffset = r200PolygonOffset;
|
functions->PolygonOffset = r200PolygonOffset;
|
||||||
if (dri2)
|
|
||||||
functions->PolygonStipple = r200PolygonStipple;
|
functions->PolygonStipple = r200PolygonStipple;
|
||||||
else
|
|
||||||
functions->PolygonStipple = radeonPolygonStipplePreKMS;
|
|
||||||
functions->PointParameterfv = r200PointParameter;
|
functions->PointParameterfv = r200PointParameter;
|
||||||
functions->PointSize = r200PointSize;
|
functions->PointSize = r200PointSize;
|
||||||
functions->RenderMode = r200RenderMode;
|
functions->RenderMode = r200RenderMode;
|
||||||
|
@@ -38,7 +38,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
#include "r200_context.h"
|
#include "r200_context.h"
|
||||||
|
|
||||||
extern void r200InitState( r200ContextPtr rmesa );
|
extern void r200InitState( r200ContextPtr rmesa );
|
||||||
extern void r200InitStateFuncs( struct dd_function_table *functions, GLboolean dri2 );
|
extern void r200InitStateFuncs( struct dd_function_table *functions );
|
||||||
extern void r200InitTnlFuncs( GLcontext *ctx );
|
extern void r200InitTnlFuncs( GLcontext *ctx );
|
||||||
|
|
||||||
extern void r200UpdateMaterial( GLcontext *ctx );
|
extern void r200UpdateMaterial( GLcontext *ctx );
|
||||||
|
@@ -887,10 +887,8 @@ void r200InitState( r200ContextPtr rmesa )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* polygon stipple is done with irq for non-kms */
|
|
||||||
if (rmesa->radeon.radeonScreen->kernel_mm) {
|
|
||||||
ALLOC_STATE( stp, always, STP_STATE_SIZE, "STP/stp", 0 );
|
ALLOC_STATE( stp, always, STP_STATE_SIZE, "STP/stp", 0 );
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 0; i < 6; i++)
|
for (i = 0; i < 6; i++)
|
||||||
if (rmesa->radeon.radeonScreen->kernel_mm)
|
if (rmesa->radeon.radeonScreen->kernel_mm)
|
||||||
@@ -1122,12 +1120,11 @@ void r200InitState( r200ContextPtr rmesa )
|
|||||||
rmesa->hw.sci.cmd[SCI_CMD_1] = CP_PACKET0(R200_RE_TOP_LEFT, 0);
|
rmesa->hw.sci.cmd[SCI_CMD_1] = CP_PACKET0(R200_RE_TOP_LEFT, 0);
|
||||||
rmesa->hw.sci.cmd[SCI_CMD_2] = CP_PACKET0(R200_RE_WIDTH_HEIGHT, 0);
|
rmesa->hw.sci.cmd[SCI_CMD_2] = CP_PACKET0(R200_RE_WIDTH_HEIGHT, 0);
|
||||||
|
|
||||||
if (rmesa->radeon.radeonScreen->kernel_mm) {
|
|
||||||
|
|
||||||
rmesa->hw.stp.cmd[STP_CMD_0] = CP_PACKET0(RADEON_RE_STIPPLE_ADDR, 0);
|
rmesa->hw.stp.cmd[STP_CMD_0] = CP_PACKET0(RADEON_RE_STIPPLE_ADDR, 0);
|
||||||
rmesa->hw.stp.cmd[STP_DATA_0] = 0;
|
rmesa->hw.stp.cmd[STP_DATA_0] = 0;
|
||||||
rmesa->hw.stp.cmd[STP_CMD_1] = CP_PACKET0_ONE(RADEON_RE_STIPPLE_DATA, 31);
|
rmesa->hw.stp.cmd[STP_CMD_1] = CP_PACKET0_ONE(RADEON_RE_STIPPLE_DATA, 31);
|
||||||
|
|
||||||
|
if (rmesa->radeon.radeonScreen->kernel_mm) {
|
||||||
rmesa->hw.mtl[0].emit = mtl_emit;
|
rmesa->hw.mtl[0].emit = mtl_emit;
|
||||||
rmesa->hw.mtl[1].emit = mtl_emit;
|
rmesa->hw.mtl[1].emit = mtl_emit;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user