diff options
author | Axel Davy <[email protected]> | 2016-10-18 20:48:54 +0200 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-12-20 23:44:22 +0100 |
commit | 93ac6dfdcce5260ee06b8c32306cb2af8ee782e3 (patch) | |
tree | b1286f745c78db50e3feb13cd57d4285e07bb679 /src/gallium/state_trackers/nine/stateblock9.c | |
parent | 2a698c3df2a940a693d39c77692b32d946ccec1d (diff) |
st/nine: Back sampler states to nine_context
Part of the refactor to move all gallium calls to
nine_state.c, and have all internal states required
for those calls in nine_context.
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/stateblock9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/stateblock9.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/nine/stateblock9.c b/src/gallium/state_trackers/nine/stateblock9.c index 1ed251af623..0c19703e64b 100644 --- a/src/gallium/state_trackers/nine/stateblock9.c +++ b/src/gallium/state_trackers/nine/stateblock9.c @@ -246,7 +246,6 @@ nine_state_copy_common(struct NineDevice9 *device, if (mask->changed.group & NINE_STATE_SAMPLER) { for (s = 0; s < NINE_MAX_SAMPLERS; ++s) { if (mask->changed.sampler[s] == 0x3ffe) { - memcpy(&dst->samp[s], &src->samp[s], sizeof(dst->samp[s])); memcpy(&dst->samp_advertised[s], &src->samp_advertised[s], sizeof(dst->samp_advertised[s])); } else { uint32_t m = mask->changed.sampler[s]; @@ -254,7 +253,6 @@ nine_state_copy_common(struct NineDevice9 *device, while (m) { const int i = ffs(m) - 1; m &= ~(1 << i); - dst->samp[s][i] = src->samp[s][i]; dst->samp_advertised[s][i] = src->samp_advertised[s][i]; } } @@ -444,7 +442,6 @@ nine_state_copy_common_all(struct NineDevice9 *device, dst->changed.ucp = src->changed.ucp; /* Sampler state. */ - memcpy(dst->samp, src->samp, sizeof(dst->samp)); memcpy(dst->samp_advertised, src->samp_advertised, sizeof(dst->samp_advertised)); if (apply) memcpy(dst->changed.sampler, |