[Mesa-dev] [PATCH 07/36] st/nine: Remove unused ff.changed.group

Axel Davy axel.davy at ens.fr
Wed Dec 7 22:30:30 UTC 2016


It was unused.

Signed-off-by: Axel Davy <axel.davy at ens.fr>
---
 src/gallium/state_trackers/nine/nine_state.h  | 1 -
 src/gallium/state_trackers/nine/stateblock9.c | 5 -----
 2 files changed, 6 deletions(-)

diff --git a/src/gallium/state_trackers/nine/nine_state.h b/src/gallium/state_trackers/nine/nine_state.h
index 714f1a9..bde02e3 100644
--- a/src/gallium/state_trackers/nine/nine_state.h
+++ b/src/gallium/state_trackers/nine/nine_state.h
@@ -209,7 +209,6 @@ struct nine_state
 
     struct {
         struct {
-            uint32_t group;
             uint32_t tex_stage[NINE_MAX_TEXTURE_STAGES][(NINED3DTSS_COUNT + 31) / 32];
             uint32_t transform[(NINED3DTS_COUNT + 31) / 32];
         } changed;
diff --git a/src/gallium/state_trackers/nine/stateblock9.c b/src/gallium/state_trackers/nine/stateblock9.c
index 75754df..16e60ef 100644
--- a/src/gallium/state_trackers/nine/stateblock9.c
+++ b/src/gallium/state_trackers/nine/stateblock9.c
@@ -293,8 +293,6 @@ nine_state_copy_common(struct NineDevice9 *device,
     WARN_ONCE("Fixed function state not handled properly by StateBlocks.\n");
 
     /* Fixed function state. */
-    if (apply)
-        dst->ff.changed.group |= src->ff.changed.group;
 
     if (mask->changed.group & NINE_STATE_FF_MATERIAL)
         dst->ff.material = src->ff.material;
@@ -480,9 +478,6 @@ nine_state_copy_common_all(struct NineDevice9 *device,
     WARN_ONCE("Fixed function state not handled properly by StateBlocks.\n");
 
     /* Fixed function state. */
-    if (apply)
-        dst->ff.changed.group = src->ff.changed.group;
-
     dst->ff.material = src->ff.material;
 
     memcpy(dst->ff.tex_stage, src->ff.tex_stage, sizeof(dst->ff.tex_stage));
-- 
2.10.2



More information about the mesa-dev mailing list