radv: remove radv_shader_variant::aco_used
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 12 Mar 2020 13:24:49 +0000 (14:24 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 13 Mar 2020 10:22:13 +0000 (10:22 +0000)
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>

src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_shader.c
src/amd/vulkan/radv_shader.h

index f87333aefa5326afb53dcd83273c9b55fb44e954..d4b7f71d395477d68afdc3621c3e8a415e54c427 100644 (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 {
index 0feb9764b8a2d827a93b3dc953529efef72e2972..6be0c43a7ab7defd88959abdddb3fa2376a0459a 100644 (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);
index f08742f9cd54214be29b3f04ba46bf145f3317ba..4e4ba73dced42f96f0e957f6fda6069e55e3a10b 100644 (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;