mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-17 19:10:36 +02:00
mesa: Use typed foreach_in_list_safe instead of foreach_list_safe.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
c6a16f6d0e
commit
373824d769
1 changed files with 1 additions and 3 deletions
|
|
@ -3872,9 +3872,7 @@ glsl_to_tgsi_visitor::eliminate_dead_code(void)
|
|||
/* Now actually remove the instructions that are completely dead and update
|
||||
* the writemask of other instructions with dead channels.
|
||||
*/
|
||||
foreach_list_safe(node, &this->instructions) {
|
||||
glsl_to_tgsi_instruction *inst = (glsl_to_tgsi_instruction *) node;
|
||||
|
||||
foreach_in_list_safe(glsl_to_tgsi_instruction, inst, &this->instructions) {
|
||||
if (!inst->dead_mask || !inst->dst.writemask)
|
||||
continue;
|
||||
else if ((inst->dst.writemask & ~inst->dead_mask) == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue