From e173a9bbd64dc38dba6b881ed7a9faea02861042 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Sat, 29 Aug 2009 20:02:25 +0100 Subject: llvmpipe: Define an winsys for LLVM. Drop pipe_winsys lp_winsys will eventually be unified with softpipe's eventually, but we are free to move quicker since we don't have the myriad of users yet. Will provide a pipe_winsys adaptor from Keith's softpipe-private-winsys soon. --- src/gallium/drivers/llvmpipe/lp_texture.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/gallium/drivers/llvmpipe/lp_texture.h') diff --git a/src/gallium/drivers/llvmpipe/lp_texture.h b/src/gallium/drivers/llvmpipe/lp_texture.h index a1ed6b0ac2..00a20763e4 100644 --- a/src/gallium/drivers/llvmpipe/lp_texture.h +++ b/src/gallium/drivers/llvmpipe/lp_texture.h @@ -35,7 +35,7 @@ struct pipe_context; struct pipe_screen; struct llvmpipe_context; - +struct llvmpipe_displaytarget; struct llvmpipe_texture { @@ -44,9 +44,16 @@ struct llvmpipe_texture unsigned long level_offset[PIPE_MAX_TEXTURE_LEVELS]; unsigned stride[PIPE_MAX_TEXTURE_LEVELS]; - /* The data is held here: + /** + * Display target, for textures with the PIPE_TEXTURE_USAGE_DISPLAY_TARGET + * usage. + */ + struct llvmpipe_displaytarget *dt; + + /** + * Malloc'ed data for regular textures, or a mapping to dt above. */ - struct pipe_buffer *buffer; + void *data; unsigned timestamp; }; -- cgit v1.2.3