i965g: use correct key size for vs upload
authorKeith Whitwell <keithw@vmware.com>
Mon, 23 Nov 2009 01:47:57 +0000 (01:47 +0000)
committerKeith Whitwell <keithw@vmware.com>
Mon, 23 Nov 2009 01:47:57 +0000 (01:47 +0000)
src/gallium/drivers/i965/brw_vs.c

index 25b51eb41e3e170b017b7c97ebcec5cc459623f3..14a1c3bcf181c229dfd84f532b8c0ce0b2b3f98e 100644 (file)
@@ -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,