radeonsi: remove TGSI from comments
authorMarek Olšák <marek.olsak@amd.com>
Fri, 10 Jan 2020 21:57:17 +0000 (16:57 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 14 Jan 2020 23:46:07 +0000 (18:46 -0500)
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_shader.h
src/gallium/drivers/radeonsi/si_shader_llvm.c

index 9f574368b01777745cd61787fe67826a2e7f6a2f..1acb6302c27403a45cc6607d4dcc4b6b745df169 100644 (file)
@@ -586,7 +586,7 @@ struct si_screen {
         *
         * Design & limitations:
         * - The shader cache is per screen (= per process), never saved to
         *
         * Design & limitations:
         * - The shader cache is per screen (= per process), never saved to
-        *   disk, and skips redundant shader compilations from TGSI to bytecode.
+        *   disk, and skips redundant shader compilations from NIR to bytecode.
         * - It can only be used with one-variant-per-shader support, in which
         *   case only the main (typically middle) part of shaders is cached.
         * - Only VS, TCS, TES, PS are cached, out of which only the hw VS
         * - It can only be used with one-variant-per-shader support, in which
         *   case only the main (typically middle) part of shaders is cached.
         * - Only VS, TCS, TES, PS are cached, out of which only the hw VS
index 66065d416209b1f81fb79d6b7970b291dc5d6daf..cfeab51d129f9af7ffca224da2e5ccdb87631381 100644 (file)
@@ -687,7 +687,6 @@ static LLVMValueRef get_tcs_tes_buffer_address(struct si_shader_context *ctx,
        return base_addr;
 }
 
        return base_addr;
 }
 
-/* This is a generic helper that can be shared by the NIR and TGSI backends */
 static LLVMValueRef get_tcs_tes_buffer_address_from_generic_indices(
                                        struct si_shader_context *ctx,
                                        LLVMValueRef vertex_index,
 static LLVMValueRef get_tcs_tes_buffer_address_from_generic_indices(
                                        struct si_shader_context *ctx,
                                        LLVMValueRef vertex_index,
@@ -969,8 +968,7 @@ LLVMValueRef si_nir_load_input_tes(struct ac_shader_abi *abi,
 
        /* TODO: This will generate rather ordinary llvm code, although it
         * should be easy for the optimiser to fix up. In future we might want
 
        /* TODO: This will generate rather ordinary llvm code, although it
         * should be easy for the optimiser to fix up. In future we might want
-        * to refactor buffer_load(), but for now this maximises code sharing
-        * between the NIR and TGSI backends.
+        * to refactor buffer_load().
         */
        LLVMValueRef value[4];
        for (unsigned i = 0; i < num_components; i++) {
         */
        LLVMValueRef value[4];
        for (unsigned i = 0; i < num_components; i++) {
@@ -2410,7 +2408,7 @@ static void si_write_tess_factors(struct si_shader_context *ctx,
 
        if (shader->key.part.tcs.epilog.prim_mode == PIPE_PRIM_LINES) {
                /* For isolines, the hardware expects tess factors in the
 
        if (shader->key.part.tcs.epilog.prim_mode == PIPE_PRIM_LINES) {
                /* For isolines, the hardware expects tess factors in the
-                * reverse order from what GLSL / TGSI specify.
+                * reverse order from what NIR specifies.
                 */
                LLVMValueRef tmp = out[0];
                out[0] = out[1];
                 */
                LLVMValueRef tmp = out[0];
                out[0] = out[1];
@@ -5759,7 +5757,7 @@ int si_compile_shader(struct si_screen *sscreen,
        struct nir_shader *nir = get_nir_shader(sel, &free_nir);
        int r = -1;
 
        struct nir_shader *nir = get_nir_shader(sel, &free_nir);
        int r = -1;
 
-       /* Dump TGSI code before doing TGSI->LLVM conversion in case the
+       /* Dump NIR before doing NIR->LLVM conversion in case the
         * conversion fails. */
        if (si_can_dump_shader(sscreen, sel->type) &&
            !(sscreen->debug_flags & DBG(NO_NIR))) {
         * conversion fails. */
        if (si_can_dump_shader(sscreen, sel->type) &&
            !(sscreen->debug_flags & DBG(NO_NIR))) {
@@ -7103,7 +7101,7 @@ bool si_shader_create(struct si_screen *sscreen, struct ac_llvm_compiler *compil
                if (!mainp)
                        return false;
 
                if (!mainp)
                        return false;
 
-               /* Copy the compiled TGSI shader data over. */
+               /* Copy the compiled shader data over. */
                shader->is_binary_shared = true;
                shader->binary = mainp->binary;
                shader->config = mainp->config;
                shader->is_binary_shared = true;
                shader->binary = mainp->binary;
                shader->config = mainp->config;
index 36c6218151c23ff340be3077606958fa89bff655..ced395411c04c6ccffe93f639406c1e65f589527 100644 (file)
@@ -308,7 +308,7 @@ struct si_compiler_ctx_state {
 };
 
 /* A shader selector is a gallium CSO and contains shader variants and
 };
 
 /* A shader selector is a gallium CSO and contains shader variants and
- * binaries for one TGSI program. This can be shared by multiple contexts.
+ * binaries for one NIR program. This can be shared by multiple contexts.
  */
 struct si_shader_selector {
        struct pipe_reference   reference;
  */
 struct si_shader_selector {
        struct pipe_reference   reference;
@@ -320,8 +320,8 @@ struct si_shader_selector {
        struct si_shader        *first_variant; /* immutable after the first variant */
        struct si_shader        *last_variant; /* mutable */
 
        struct si_shader        *first_variant; /* immutable after the first variant */
        struct si_shader        *last_variant; /* mutable */
 
-       /* The compiled TGSI shader expecting a prolog and/or epilog (not
-        * uploaded to a buffer).
+       /* The compiled NIR shader without a prolog and/or epilog (not
+        * uploaded to a buffer object).
         */
        struct si_shader        *main_shader_part;
        struct si_shader        *main_shader_part_ls; /* as_ls is set in the key */
         */
        struct si_shader        *main_shader_part;
        struct si_shader        *main_shader_part_ls; /* as_ls is set in the key */
index 64ceaf7ed34e4b494175ae1d04c2cb9f2337c1b6..df33d34076e1fa13f147c4c6c221275b5a0017ab 100644 (file)
@@ -149,7 +149,7 @@ void si_llvm_context_init(struct si_shader_context *ctx,
        ctx->i1true = LLVMConstInt(ctx->i1, 1, 0);
 }
 
        ctx->i1true = LLVMConstInt(ctx->i1, 1, 0);
 }
 
-/* Set the context to a certain TGSI shader. Can be called repeatedly
+/* Set the context to a certain shader. Can be called repeatedly
  * to change the shader. */
 void si_llvm_context_set_ir(struct si_shader_context *ctx,
                            struct si_shader *shader)
  * to change the shader. */
 void si_llvm_context_set_ir(struct si_shader_context *ctx,
                            struct si_shader *shader)