util/u_blit: Support blits from cubemaps.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 17 Sep 2013 18:22:44 +0000 (19:22 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 18 Sep 2013 10:24:59 +0000 (11:24 +0100)
commitd8c7e13886be6056e777a26a59f6c010cf880ed0
tree023bb6e3c3aa61f7d5485e4f5ba9f968e725481a
parentfb1d992da4c364f56ffeae5a96b6186ed8f11728
util/u_blit: Support blits from cubemaps.

By calling util_map_texcoords2d_onto_cubemap.

A new parameter for util_blit_pixels_tex is necessary, as
pipe_sampler_view::first_layer is always supposed to point to the first
face when sampling from cubemaps.

Reviewed-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/util/u_blit.c
src/gallium/auxiliary/util/u_blit.h