r300g,llvmpipe: fix some more merge problems
authorRoland Scheidegger <sroland@vmware.com>
Fri, 27 Nov 2009 16:40:24 +0000 (17:40 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Fri, 27 Nov 2009 16:40:24 +0000 (17:40 +0100)
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/r300/r300_emit.c

index 0a0f31f8a38b6894b085247637cd77682decbcbe..65d62fd072358ea785167087e735ecb22954c8c1 100644 (file)
@@ -169,7 +169,7 @@ llvmpipe_texture_blanket(struct pipe_screen * screen,
    /* Only supports one type */
    if (base->target != PIPE_TEXTURE_2D ||
        base->last_level != 0 ||
-       base->depth[0] != 1) {
+       base->depth0 != 1) {
       return NULL;
    }
 
index e6ab8e4af148c4ea2d374bae572223d705976192..98a39390bf90026d07079b1be34712fcd534161a 100644 (file)
@@ -145,8 +145,8 @@ static const float * get_shader_constant(
                  * normalized coords. Should only show up on non-r500. */
                 case RC_STATE_R300_TEXRECT_FACTOR:
                     tex = &r300->textures[constant->u.State[1]]->tex;
-                    vec[0] = 1.0 / tex->width[0];
-                    vec[1] = 1.0 / tex->height[0];
+                    vec[0] = 1.0 / tex->width0;
+                    vec[1] = 1.0 / tex->height0;
                     break;
 
                 default: