radeon: Don't check DCC on pipe buffers
Fixes segfaults in EG compute since:
commit 21de3be8e6
radeonsi: fix texture format reinterpretation with DCC
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
304f70536a
commit
b671909d27
|
@ -1788,9 +1788,10 @@ struct pipe_surface *r600_create_surface_custom(struct pipe_context *pipe,
|
|||
surface->base.u = templ->u;
|
||||
surface->level_info = &rtex->surface.level[templ->u.tex.level];
|
||||
|
||||
vi_dcc_disable_if_incompatible_format(rctx, texture,
|
||||
templ->u.tex.level,
|
||||
templ->format);
|
||||
if (texture->target != PIPE_BUFFER)
|
||||
vi_dcc_disable_if_incompatible_format(rctx, texture,
|
||||
templ->u.tex.level,
|
||||
templ->format);
|
||||
|
||||
return &surface->base;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue