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:
@@ -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];
|
||||
}
|
||||
|
Reference in New Issue
Block a user