Mesa (master): d3d1x: fix xs_set_samplers

Christoph Bumiller chrisbmr at kemper.freedesktop.org
Thu Aug 25 03:36:57 PDT 2011


Module: Mesa
Branch: master
Commit: 974412d7b985f44c2d3a68f818d2723346a4512b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=974412d7b985f44c2d3a68f818d2723346a4512b

Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date:   Sat May 28 11:56:43 2011 +0200

d3d1x: fix xs_set_samplers

---

 .../state_trackers/d3d1x/gd3d11/d3d11_context.h    |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h
index aedf82a..8e48d18 100644
--- a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h
+++ b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h
@@ -391,11 +391,12 @@ struct GalliumD3D10Device : public GalliumD3D10ScreenImpl<threadsafe>
 			{
 				samplers[s][start + i] = samps[i];
 				sampler_csos[s].v[start + i] = samps[i] ? samps[i]->object : default_sampler;
+				last_different = i;
 			}
 			if(last_different >= 0)
 			{
 				num_samplers[s] = std::max(num_samplers[s], start + last_different + 1);
-				update_flags |= (UPDATE_SAMPLERS_SHIFT + s);
+				update_flags |= 1 << (UPDATE_SAMPLERS_SHIFT + s);
 			}
 		}
 	}



More information about the mesa-commit mailing list