mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 11:10:10 +01:00
r600g: Ignore format for PIPE_BUFFER targets
Fixes compute since 7dd31b81fe
gallium/radeon: support PIPE_CAP_SURFACE_REINTERPRET_BLOCKS
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
d8e4908b63
commit
5b51b2e000
1 changed files with 1 additions and 1 deletions
|
|
@ -1219,7 +1219,7 @@ static struct pipe_surface *r600_create_surface(struct pipe_context *pipe,
|
|||
unsigned width = u_minify(tex->width0, level);
|
||||
unsigned height = u_minify(tex->height0, level);
|
||||
|
||||
if (templ->format != tex->format) {
|
||||
if (tex->target != PIPE_BUFFER && templ->format != tex->format) {
|
||||
const struct util_format_description *tex_desc
|
||||
= util_format_description(tex->format);
|
||||
const struct util_format_description *templ_desc
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue