diff options
author | Timothy Arceri <[email protected]> | 2016-11-20 23:05:42 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-01-23 14:48:04 +1100 |
commit | fc707f570f918ab0defd33405c8c82f307196d17 (patch) | |
tree | 3f03a4e3416f8940ed09819ca0006e1535cb3dcd /src/mesa/state_tracker | |
parent | f86d15ed94df59e4b3cdb4099d69cdd81f52fc27 (diff) |
mesa/glsl: set {clip,cull}_distance_array_size directly in gl_program
There are some line wrapping violations here but those lines will get
deleted in the following patch.
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_program.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c index fb0a138c245..94204d7bd32 100644 --- a/src/mesa/state_tracker/st_program.c +++ b/src/mesa/state_tracker/st_program.c @@ -404,12 +404,12 @@ st_translate_vertex_program(struct st_context *st, if (ureg == NULL) return false; - if (stvp->Base.ClipDistanceArraySize) + if (stvp->Base.info.clip_distance_array_size) ureg_property(ureg, TGSI_PROPERTY_NUM_CLIPDIST_ENABLED, - stvp->Base.ClipDistanceArraySize); - if (stvp->Base.CullDistanceArraySize) + stvp->Base.info.clip_distance_array_size); + if (stvp->Base.info.cull_distance_array_size) ureg_property(ureg, TGSI_PROPERTY_NUM_CULLDIST_ENABLED, - stvp->Base.CullDistanceArraySize); + stvp->Base.info.cull_distance_array_size); if (ST_DEBUG & DEBUG_MESA) { _mesa_print_program(&stvp->Base); @@ -1219,12 +1219,12 @@ st_translate_program_common(struct st_context *st, memset(outputMapping, 0, sizeof(outputMapping)); memset(out_state, 0, sizeof(*out_state)); - if (prog->ClipDistanceArraySize) + if (prog->info.clip_distance_array_size) ureg_property(ureg, TGSI_PROPERTY_NUM_CLIPDIST_ENABLED, - prog->ClipDistanceArraySize); - if (prog->CullDistanceArraySize) + prog->info.clip_distance_array_size); + if (prog->info.cull_distance_array_size) ureg_property(ureg, TGSI_PROPERTY_NUM_CULLDIST_ENABLED, - prog->CullDistanceArraySize); + prog->info.cull_distance_array_size); /* * Convert Mesa program inputs to TGSI input register semantics. |