Module: Mesa
Branch: arb_geometry_shader4
Commit: f9adb53ac24fdc68d2aaf2758e2413dca6524952
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f9adb53ac24fdc68d2aaf2758e2413dca6524952

Author: Zack Rusin <[email protected]>
Date:   Sat Sep 12 19:46:25 2009 -0400

gs: propagate texture samplers to the geometry shader

---

 src/gallium/auxiliary/draw/draw_context.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/draw/draw_context.c 
b/src/gallium/auxiliary/draw/draw_context.c
index 9f1ff49..62ac42f 100644
--- a/src/gallium/auxiliary/draw/draw_context.c
+++ b/src/gallium/auxiliary/draw/draw_context.c
@@ -373,7 +373,7 @@ draw_num_shader_outputs(const struct draw_context *draw)
 
 
 /**
- * Provide TGSI sampler objects for vertex shaders that use texture fetches.
+ * Provide TGSI sampler objects for vertex/geometry shaders that use texture 
fetches.
  * This might only be used by software drivers for the time being.
  */
 void
@@ -383,6 +383,8 @@ draw_texture_samplers(struct draw_context *draw,
 {
    draw->vs.num_samplers = num_samplers;
    draw->vs.samplers = samplers;
+   draw->gs.num_samplers = num_samplers;
+   draw->gs.samplers = samplers;
 }
 
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to