radv: remove radv_shader_variant::aco_used

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4163>
This commit is contained in:
Samuel Pitoiset
2020-03-12 14:24:49 +01:00
committed by Marge Bot
parent 3fea948177
commit 5ea32a6201
3 changed files with 1 additions and 3 deletions

View File

@@ -5653,7 +5653,7 @@ VkResult radv_GetPipelineExecutableInternalRepresentationsKHR(
/* backend IR */
if (p < end) {
p->isText = true;
if (shader->aco_used) {
if (pipeline->device->physical_device->use_aco) {
desc_copy(p->name, "ACO IR");
desc_copy(p->description, "The ACO IR after some optimizations");
} else {

View File

@@ -1160,7 +1160,6 @@ shader_variant_compile(struct radv_device *device,
free(binary);
return NULL;
}
variant->aco_used = device->physical_device->use_aco;
if (options->dump_shader) {
fprintf(stderr, "disasm:\n%s\n", variant->disasm_string);

View File

@@ -372,7 +372,6 @@ struct radv_shader_variant {
struct radv_shader_info info;
/* debug only */
bool aco_used;
char *spirv;
uint32_t spirv_size;
char *nir_string;