Merge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa
This commit is contained in:
@@ -62,15 +62,23 @@ i915_miptree_layout(struct intel_mipmap_tree * mt)
|
||||
case GL_TEXTURE_CUBE_MAP:{
|
||||
const GLuint dim = mt->width0;
|
||||
GLuint face;
|
||||
GLuint lvlWidth = mt->width0, lvlHeight = mt->height0;
|
||||
|
||||
assert(lvlWidth == lvlHeight); /* cubemap images are square */
|
||||
|
||||
/* double pitch for cube layouts */
|
||||
mt->pitch = ((dim * mt->cpp * 2 + 3) & ~3) / mt->cpp;
|
||||
mt->total_height = dim * 4;
|
||||
|
||||
for (level = mt->first_level; level <= mt->last_level; level++)
|
||||
for (level = mt->first_level; level <= mt->last_level; level++) {
|
||||
intel_miptree_set_level_info(mt, level, 6,
|
||||
0, 0,
|
||||
mt->pitch, mt->total_height, 1);
|
||||
/*OLD: mt->pitch, mt->total_height,*/
|
||||
lvlWidth, lvlHeight,
|
||||
1);
|
||||
lvlWidth /= 2;
|
||||
lvlHeight /= 2;
|
||||
}
|
||||
|
||||
for (face = 0; face < 6; face++) {
|
||||
GLuint x = initial_offsets[face][0] * dim;
|
||||
|
||||
@@ -309,8 +309,13 @@ intel_miptree_image_data(struct intel_context *intel,
|
||||
height = dst->level[level].height;
|
||||
if(dst->compressed)
|
||||
height /= 4;
|
||||
intel_region_data(intel->intelScreen, dst->region, dst_offset + dst_depth_offset[i], 0, 0, src, src_row_pitch, 0, 0, /* source x,y */
|
||||
dst->level[level].width, height);
|
||||
intel_region_data(intel->intelScreen, dst->region,
|
||||
dst_offset + dst_depth_offset[i], /* dst_offset */
|
||||
0, 0, /* dstx, dsty */
|
||||
src,
|
||||
src_row_pitch,
|
||||
0, 0, /* source x, y */
|
||||
dst->level[level].width, height); /* width, height */
|
||||
|
||||
src += src_image_pitch;
|
||||
}
|
||||
|
||||
@@ -217,7 +217,8 @@ _mesa_copy_rect(GLubyte * dst,
|
||||
GLuint dst_y,
|
||||
GLuint width,
|
||||
GLuint height,
|
||||
GLubyte * src, GLuint src_pitch, GLuint src_x, GLuint src_y)
|
||||
const GLubyte * src,
|
||||
GLuint src_pitch, GLuint src_x, GLuint src_y)
|
||||
{
|
||||
GLuint i;
|
||||
|
||||
@@ -253,7 +254,7 @@ intel_region_data(intelScreenPrivate *intelScreen,
|
||||
struct intel_region *dst,
|
||||
GLuint dst_offset,
|
||||
GLuint dstx, GLuint dsty,
|
||||
void *src, GLuint src_pitch,
|
||||
const void *src, GLuint src_pitch,
|
||||
GLuint srcx, GLuint srcy, GLuint width, GLuint height)
|
||||
{
|
||||
struct intel_context *intel = intelScreenContext(intelScreen);
|
||||
|
||||
@@ -103,7 +103,7 @@ void intel_region_data(intelScreenPrivate *intelScreen,
|
||||
struct intel_region *dest,
|
||||
GLuint dest_offset,
|
||||
GLuint destx, GLuint desty,
|
||||
void *src, GLuint src_stride,
|
||||
const void *src, GLuint src_stride,
|
||||
GLuint srcx, GLuint srcy, GLuint width, GLuint height);
|
||||
|
||||
/* Copy rectangular sub-regions
|
||||
|
||||
@@ -420,14 +420,14 @@ void r200EmitArrays( GLcontext *ctx, GLubyte *vimap_rev )
|
||||
if (!rmesa->tcl.vertex_data[i].buf) {
|
||||
if (ctx->VertexProgram._Enabled)
|
||||
emit_vector( ctx,
|
||||
&(rmesa->tcl.vertex_data[attrib]),
|
||||
&(rmesa->tcl.vertex_data[i]),
|
||||
(char *)VB->AttribPtr[attrib]->data,
|
||||
1,
|
||||
VB->AttribPtr[attrib]->stride,
|
||||
count);
|
||||
else
|
||||
emit_vecfog( ctx,
|
||||
&(rmesa->tcl.vertex_data[attrib]),
|
||||
&(rmesa->tcl.vertex_data[i]),
|
||||
(char *)VB->AttribPtr[attrib]->data,
|
||||
VB->AttribPtr[attrib]->stride,
|
||||
count);
|
||||
|
||||
@@ -49,7 +49,11 @@ class PrintGlTable(gl_XML.gl_print_base):
|
||||
|
||||
def printRealHeader(self):
|
||||
print '#ifndef GLAPIENTRYP'
|
||||
print '#define GLAPIENTRYP'
|
||||
print '# ifndef GLAPIENTRY'
|
||||
print '# define GLAPIENTRY'
|
||||
print '# endif'
|
||||
print ''
|
||||
print '# define GLAPIENTRYP GLAPIENTRY *'
|
||||
print '#endif'
|
||||
print ''
|
||||
print 'typedef void (*_glapi_proc)(void); /* generic function pointer */'
|
||||
|
||||
@@ -30,7 +30,11 @@
|
||||
# define _GLAPI_TABLE_H_
|
||||
|
||||
#ifndef GLAPIENTRYP
|
||||
#define GLAPIENTRYP
|
||||
# ifndef GLAPIENTRY
|
||||
# define GLAPIENTRY
|
||||
# endif
|
||||
|
||||
# define GLAPIENTRYP GLAPIENTRY *
|
||||
#endif
|
||||
|
||||
typedef void (*_glapi_proc)(void); /* generic function pointer */
|
||||
|
||||
Reference in New Issue
Block a user