summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/postprocess/pp_program.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-03-29 21:28:55 +0200
committerMarek Olšák <[email protected]>2012-03-30 18:14:06 +0200
commit99a192ce7d8690f44a1f23a432607b6ce5031942 (patch)
treeb6a826a88c3406f43cc0d2b378289e93cf8089e7 /src/gallium/auxiliary/postprocess/pp_program.c
parentead0a89c9661135d66e086bbe524f9623b00af5b (diff)
gallium/postprocess: document serious issue causing undefined behavior
Diffstat (limited to 'src/gallium/auxiliary/postprocess/pp_program.c')
-rw-r--r--src/gallium/auxiliary/postprocess/pp_program.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/postprocess/pp_program.c b/src/gallium/auxiliary/postprocess/pp_program.c
index 5c819a9c603..31e2bee7696 100644
--- a/src/gallium/auxiliary/postprocess/pp_program.c
+++ b/src/gallium/auxiliary/postprocess/pp_program.c
@@ -53,6 +53,10 @@ pp_init_prog(struct pp_queue_t *ppq, struct pipe_screen *pscreen)
p->screen = pscreen;
p->pipe = pscreen->context_create(pscreen, NULL);
+
+ /* XXX this doesn't use the cso_context of the state tracker, but creates
+ * its own. Having 2 existing cso_contexts use 1 pipe_context may cause
+ * undefined behavior! */
p->cso = cso_create_context(p->pipe);
{