Mesa (i965g-restart): i965g: use correct key size for vs upload

Keith Whitwell keithw at kemper.freedesktop.org
Mon Nov 23 03:10:22 UTC 2009


Module: Mesa
Branch: i965g-restart
Commit: 968a7dfb292f1eefa9ada8096bb023c051518c32
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=968a7dfb292f1eefa9ada8096bb023c051518c32

Author: Keith Whitwell <keithw at vmware.com>
Date:   Mon Nov 23 01:47:57 2009 +0000

i965g: use correct key size for vs upload

---

 src/gallium/drivers/i965/brw_vs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/i965/brw_vs.c b/src/gallium/drivers/i965/brw_vs.c
index 25b51eb..14a1c3b 100644
--- a/src/gallium/drivers/i965/brw_vs.c
+++ b/src/gallium/drivers/i965/brw_vs.c
@@ -84,7 +84,7 @@ static enum pipe_error do_vs_prog( struct brw_context *brw,
       return ret;
 
    ret = brw_upload_cache( &brw->cache, BRW_VS_PROG,
-                           &c.key, sizeof(c.key),
+                           &c.key, brw_vs_prog_key_size(&c.key),
                            NULL, 0,
                            program, program_size,
                            &c.prog_data,




More information about the mesa-commit mailing list