Mesa (master): d3d1x: save to correct slot in xs_set_constant_buffers

Christoph Bumiller chrisbmr at kemper.freedesktop.org
Thu Aug 25 03:58:43 PDT 2011


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

Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date:   Thu Aug 25 12:52:35 2011 +0200

d3d1x: save to correct slot in xs_set_constant_buffers

---

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

diff --git a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h
index 8e48d18..0a31cf1 100644
--- a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h
+++ b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h
@@ -352,9 +352,9 @@ struct GalliumD3D10Device : public GalliumD3D10ScreenImpl<threadsafe>
 	{
 		for(unsigned i = 0; i < count; ++i)
 		{
-			if(constbufs[i] != constant_buffers[s][i].p)
+			if(constbufs[i] != constant_buffers[s][start + i].p)
 			{
-				constant_buffers[s][i] = constbufs[i];
+				constant_buffers[s][start + i] = constbufs[i];
 				if(s < caps.stages && start + i < caps.constant_buffers[s])
 					pipe->set_constant_buffer(pipe, s, start + i, constbufs[i] ? constbufs[i]->resource : NULL);
 			}



More information about the mesa-commit mailing list