gallium: fix more statetrackers/drivers for not using texture width/height/depth arrays

This commit is contained in:
Roland Scheidegger
2009-11-26 22:49:58 +01:00
parent 683e35f726
commit d509f84543
50 changed files with 360 additions and 373 deletions

View File

@@ -252,9 +252,9 @@ st_context_create(struct st_device *st_dev)
templat.block.size = 4;
templat.block.width = 1;
templat.block.height = 1;
templat.width[0] = 1;
templat.height[0] = 1;
templat.depth[0] = 1;
templat.width0 = 1;
templat.height0 = 1;
templat.depth0 = 1;
templat.last_level = 0;
st_ctx->default_texture = screen->texture_create( screen, &templat );
@@ -264,8 +264,8 @@ st_context_create(struct st_device *st_dev)
0, 0, 0,
PIPE_TRANSFER_WRITE,
0, 0,
st_ctx->default_texture->width[0],
st_ctx->default_texture->height[0]);
st_ctx->default_texture->width0,
st_ctx->default_texture->height0);
if (transfer) {
uint32_t *map;
map = (uint32_t *) screen->transfer_map(screen, transfer);