mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 01:28:07 +02:00
gallium/util: fix blitter sampler view target initialization
This was missing, and drivers relying on the target in the view could get into quite some trouble. Signed-off-by: Roland Scheidegger <sroland@vmware.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
cf71e7093c
commit
2712f70d57
1 changed files with 1 additions and 0 deletions
|
|
@ -1306,6 +1306,7 @@ void util_blitter_default_src_texture(struct pipe_sampler_view *src_templ,
|
|||
unsigned srclevel)
|
||||
{
|
||||
memset(src_templ, 0, sizeof(*src_templ));
|
||||
src_templ->target = src->target;
|
||||
src_templ->format = util_format_linear(src->format);
|
||||
src_templ->u.tex.first_level = srclevel;
|
||||
src_templ->u.tex.last_level = srclevel;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue