diff options
author | Eric Anholt <[email protected]> | 2014-06-27 16:32:03 +0100 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-08-08 18:59:46 -0700 |
commit | 7108c24fd02a76f3efef4ba5d9aefdf0704ab0d8 (patch) | |
tree | 5d8483a00bb195aa6b410dca1dd42f0a8af66d54 /src/gallium/drivers/vc4/vc4_context.c | |
parent | 427f934f9e75deafdc40348aad0426ea2b31515c (diff) |
vc4: Use the user's actual first vertex attribute.
This is hardcoded to read it as RGBA32F so far, but starts to get more
tests working.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_context.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_context.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_context.c b/src/gallium/drivers/vc4/vc4_context.c index 51018d1cc94..66cba1f33e0 100644 --- a/src/gallium/drivers/vc4/vc4_context.c +++ b/src/gallium/drivers/vc4/vc4_context.c @@ -29,6 +29,7 @@ #include "util/u_inlines.h" #include "util/u_memory.h" #include "util/u_blitter.h" +#include "indices/u_primconvert.h" #include "pipe/p_screen.h" #define __user @@ -142,6 +143,10 @@ vc4_context_destroy(struct pipe_context *pctx) if (vc4->blitter) util_blitter_destroy(vc4->blitter); + + if (vc4->primconvert) + util_primconvert_destroy(vc4->primconvert); + util_slab_destroy(&vc4->transfer_pool); free(vc4); @@ -184,6 +189,11 @@ vc4_context_create(struct pipe_screen *pscreen, void *priv) if (!vc4->blitter) goto fail; + vc4->primconvert = util_primconvert_create(pctx, + !((1 << PIPE_PRIM_QUADS) - 1)); + if (!vc4->primconvert) + goto fail; + return &vc4->base; fail: |