radeonsi: remove si_shader_context::param_tess_offchip
authorMarek Olšák <marek.olsak@amd.com>
Sun, 22 Jan 2017 12:58:05 +0000 (13:58 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 30 Jan 2017 12:27:14 +0000 (13:27 +0100)
we don't use on-chip tess.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_shader_internal.h

index cad7bf7a024f59e4e067e75db9ea7ddf9bafb2b7..5c5f2e66c23b6f540baf8b2882f6e28f4f1cfbd0 100644 (file)
@@ -5540,7 +5540,7 @@ static void declare_streamout_params(struct si_shader_context *ctx,
                if (ctx->type != PIPE_SHADER_TESS_EVAL)
                        params[ctx->param_streamout_config = (*num_params)++] = i32;
                else
-                       ctx->param_streamout_config = ctx->param_tess_offchip;
+                       ctx->param_streamout_config = *num_params - 1;
 
                params[ctx->param_streamout_write_index = (*num_params)++] = i32;
        }
@@ -5704,10 +5704,10 @@ static void create_function(struct si_shader_context *ctx)
 
                if (shader->key.as_es) {
                        params[ctx->param_oc_lds = num_params++] = ctx->i32;
-                       params[ctx->param_tess_offchip = num_params++] = ctx->i32;
+                       params[num_params++] = ctx->i32;
                        params[ctx->param_es2gs_offset = num_params++] = ctx->i32;
                } else {
-                       params[ctx->param_tess_offchip = num_params++] = ctx->i32;
+                       params[num_params++] = ctx->i32;
                        declare_streamout_params(ctx, &shader->selector->so,
                                                 params, ctx->i32, &num_params);
                        params[ctx->param_oc_lds = num_params++] = ctx->i32;
index d37a9e784ec9d1c4342160f6ad1c1e452892e391..9055b4d7755b3aeaaf3860a34db3b9820fd9e55e 100644 (file)
@@ -121,11 +121,6 @@ struct si_shader_context {
        int param_es2gs_offset;
        int param_oc_lds;
 
-       /* Sets a bit if the dynamic HS control word was 0x80000000. The bit is
-        * 0x800000 for VS, 0x1 for ES.
-        */
-       int param_tess_offchip;
-
        LLVMTargetMachineRef tm;
 
        unsigned invariant_load_md_kind;