diff options
author | Marek Olšák <[email protected]> | 2010-06-08 23:46:40 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-06-13 17:43:37 +0200 |
commit | 028459b0bf2bb778b55493f9b23ab7f2c9b355a0 (patch) | |
tree | 8876c86860c090fad870e67d32b3caa05f08081c /src/gallium/drivers/r300/r300_context.c | |
parent | 1384a7bccab3d5b36729d59944a76538375f5494 (diff) |
r300g: add fallback for unaligned/unsupported vertex stride/offset/format
There is a problem though, the translate module cannot emit half float
vertices.
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_context.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c index 88ce1867982..9425f93a279 100644 --- a/src/gallium/drivers/r300/r300_context.c +++ b/src/gallium/drivers/r300/r300_context.c @@ -66,6 +66,8 @@ static void r300_destroy_context(struct pipe_context* context) u_upload_destroy(r300->upload_vb); u_upload_destroy(r300->upload_ib); + translate_cache_destroy(r300->tran.translate_cache); + FREE(r300->blend_color_state.state); FREE(r300->clip_state.state); FREE(r300->fb_state.state); @@ -227,6 +229,8 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen, if (r300->upload_vb == NULL) goto no_upload_vb; + r300->tran.translate_cache = translate_cache_create(); + return &r300->context; no_upload_ib: |