draw: Make copy of the TGSI tokens.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 23 Sep 2011 15:32:31 +0000 (16:32 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sun, 25 Sep 2011 10:04:29 +0000 (11:04 +0100)
commitfc31f9a3f255c5565ce2a3e9c73415bc17199e28
treec1a167066edf24579c6974bd9770ad21d9f4a81d
parent06ae4a62b1b3c668a5b50661df25d87f8c2679ef
draw: Make copy of the TGSI tokens.

There is no guarantee that the tokens TGSI will persist beyond the
create_fs_state. The pipe driver (and therefore the draw module) is
responsible for making copies of the TGSI tokens when it needs them.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/draw/draw_pipe_aaline.c
src/gallium/auxiliary/draw/draw_pipe_aapoint.c