summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/g3dvl/vl_context.c
diff options
context:
space:
mode:
authorYounes Manton <younes.m@gmail.com>2008-06-30 19:26:22 -0400
committerYounes Manton <younes.m@gmail.com>2008-06-30 19:26:22 -0400
commit9833aec6cbd113d24277aa5da8625c1427d831ca (patch)
treef7ee6ca969ad0d4c8e69efe69f058cbf568cfa36 /src/gallium/state_trackers/g3dvl/vl_context.c
parent1c893fd513f5335a81dd72db70d64763634ea856 (diff)
g3dvl: Use block and stride instead of cpp and pitch.
Diffstat (limited to 'src/gallium/state_trackers/g3dvl/vl_context.c')
-rw-r--r--src/gallium/state_trackers/g3dvl/vl_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/g3dvl/vl_context.c b/src/gallium/state_trackers/g3dvl/vl_context.c
index 88da47c06a..bd8743dc9a 100644
--- a/src/gallium/state_trackers/g3dvl/vl_context.c
+++ b/src/gallium/state_trackers/g3dvl/vl_context.c
@@ -1407,7 +1407,7 @@ static int vlInitMC(struct VL_CONTEXT *context)
template.height[0] = 8 * 4;
template.depth[0] = 1;
template.compressed = 0;
- template.cpp = 2;
+ pf_get_block(template.format, &template.block);
context->states.mc.textures[0] = pipe->screen->texture_create(pipe->screen, &template);