nv50: Fix use of initializers on older compilers
Fixes the following error on Ubuntu 18.04 with GCC 7.
src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp:1448:72:
sorry, unimplemented: non-trivial designated initializers not supported
info_out->prop.cp.gmem[gmemSlot++] = {.valid = 1, .slot = i};
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Fixes: f451854f3 ("nv50: add remapping of buffers/images into unified space")
Signed-off-by: Ernst Sjöstrand <ernstp@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10668>
This commit is contained in:
committed by
Marge Bot
parent
daad8f2245
commit
ca3dbecea6
@@ -1445,7 +1445,7 @@ bool Source::scanDeclaration(const struct tgsi_full_declaration *decl)
|
||||
if (info->type == PIPE_SHADER_COMPUTE && info->target < NVISA_GF100_CHIPSET) {
|
||||
for (i = first; i <= last; i++) {
|
||||
bufferIds.insert(std::make_pair(i, gmemSlot));
|
||||
info_out->prop.cp.gmem[gmemSlot++] = {.valid = 1, .slot = i};
|
||||
info_out->prop.cp.gmem[gmemSlot++] = {.valid = 1, .image = 0, .slot = i};
|
||||
assert(gmemSlot < 16);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user