radv/ac: propogate as_es flag into shader info from key.
authorDave Airlie <airlied@redhat.com>
Thu, 19 Jan 2017 03:23:55 +0000 (13:23 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 30 Jan 2017 23:29:23 +0000 (09:29 +1000)
This just places the flag into the shader info so we can use it from
the driver after we create the shader.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c
src/amd/common/ac_nir_to_llvm.h

index a93b4cf2775d8a81b14961bde7590ee004f3762d..844938af462541f2140faf3ba6f7567bebb3d72e 100644 (file)
@@ -4776,6 +4776,9 @@ void ac_compile_nir_shader(LLVMTargetMachineRef tm,
                shader_info->gs.output_prim = nir->info->gs.output_primitive;
                shader_info->gs.invocations = nir->info->gs.invocations;
                break;
+       case MESA_SHADER_VERTEX:
+               shader_info->vs.as_es = options->key.vs.as_es;
+               break;
        default:
                break;
        }
index c457ceab7eb77dd224a17121e6f1d1ccf865fa58..783331160e556b35f80d2e9f90375bd98aa03b0a 100644 (file)
@@ -102,6 +102,7 @@ struct ac_shader_variant_info {
                        bool writes_pointsize;
                        bool writes_layer;
                        bool writes_viewport_index;
+                       bool as_es;
                        uint8_t clip_dist_mask;
                        uint8_t cull_dist_mask;
                } vs;