diff options
author | Roland Scheidegger <[email protected]> | 2009-11-26 22:49:58 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2009-11-26 22:51:45 +0100 |
commit | d509f84543d0979e9bb53c20c195f378dd61e728 (patch) | |
tree | 1f5d3fac9862714c898b3f4f58974bff8699a382 /src/gallium/drivers/cell/ppu/cell_state_emit.c | |
parent | 683e35f726a182ed9fc6b6d5cb07146eebe14dea (diff) |
gallium: fix more statetrackers/drivers for not using texture width/height/depth arrays
Diffstat (limited to 'src/gallium/drivers/cell/ppu/cell_state_emit.c')
-rw-r--r-- | src/gallium/drivers/cell/ppu/cell_state_emit.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/cell/ppu/cell_state_emit.c b/src/gallium/drivers/cell/ppu/cell_state_emit.c index 9479c0898fd..ac5fafec1ad 100644 --- a/src/gallium/drivers/cell/ppu/cell_state_emit.c +++ b/src/gallium/drivers/cell/ppu/cell_state_emit.c @@ -27,6 +27,7 @@ #include "pipe/p_inlines.h" #include "util/u_memory.h" +#include "util/u_math.h" #include "cell_context.h" #include "cell_gen_fragment.h" #include "cell_state.h" @@ -299,9 +300,9 @@ cell_emit_state(struct cell_context *cell) for (level = 0; level < CELL_MAX_TEXTURE_LEVELS; level++) { texture->start[level] = (ct->mapped + ct->level_offset[level]); - texture->width[level] = ct->base.width[level]; - texture->height[level] = ct->base.height[level]; - texture->depth[level] = ct->base.depth[level]; + texture->width[level] = u_minify(ct->base.width0, level); + texture->height[level] = u_minify(ct->base.height0, level); + texture->depth[level] = u_minify(ct->base.depth0, level); } texture->target = ct->base.target; } |