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:
Jan Vesely 2016-09-12 20:47:37 -04:00
parent 304f70536a
commit b671909d27
1 changed files with 4 additions and 3 deletions

View File

@ -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;
}