llvmpipe: fix rendering to 3D textures

Treat cube faces and 3D texture slices in the same manner (they're layed
out out continuously in memory).  Additional clean-ups and improvements
coming.
This commit is contained in:
Brian Paul
2010-04-19 16:42:47 -06:00
parent ee7cf9d80f
commit 202ff7db49
4 changed files with 114 additions and 76 deletions

View File

@@ -531,8 +531,8 @@ lp_setup_set_fragment_sampler_views(struct lp_setup_context *setup,
(ubyte *) lp_tex->data + lp_tex->level_offset[j];
#else
jit_tex->data[j] =
llvmpipe_get_texture_image(lp_tex, 0, j, LP_TEX_USAGE_READ,
LP_TEX_LAYOUT_LINEAR);
llvmpipe_get_texture_image_all(lp_tex, j, LP_TEX_USAGE_READ,
LP_TEX_LAYOUT_LINEAR);
#endif
jit_tex->row_stride[j] = lp_tex->stride[j];
}