diff options
author | Keith Whitwell <keithw@vmware.com> | 2010-01-08 14:57:08 +0000 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2010-01-08 14:57:08 +0000 |
commit | 2148fa86bcecc8a50c24a75a85a9f5c86b481e2a (patch) | |
tree | db5798e604870a2f02b7eadd1e5e6d123b0c83aa | |
parent | 19f3f7ff976f43049982db7454b3a1f686583a99 (diff) |
llvmpipe: update for framebuffer width/height removal
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_context.h | 5 | ||||
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_derived.c | 4 | ||||
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_surface.c | 6 |
3 files changed, 11 insertions, 4 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_context.h b/src/gallium/drivers/llvmpipe/lp_context.h index cc4d5ad5fd..5f49b9fae3 100644 --- a/src/gallium/drivers/llvmpipe/lp_context.h +++ b/src/gallium/drivers/llvmpipe/lp_context.h @@ -73,6 +73,11 @@ struct llvmpipe_context { struct pipe_viewport_state viewport; struct pipe_vertex_buffer vertex_buffer[PIPE_MAX_ATTRIBS]; struct pipe_vertex_element vertex_element[PIPE_MAX_ATTRIBS]; + + /* Currently not supporting mixed-sized framebuffer surfaces: + */ + unsigned framebuffer_width; + unsigned framebuffer_height; unsigned num_samplers; unsigned num_textures; diff --git a/src/gallium/drivers/llvmpipe/lp_state_derived.c b/src/gallium/drivers/llvmpipe/lp_state_derived.c index acfd7be5f7..2f16a8adc4 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_derived.c +++ b/src/gallium/drivers/llvmpipe/lp_state_derived.c @@ -166,8 +166,8 @@ compute_cliprect(struct llvmpipe_context *lp) { /* LP_NEW_FRAMEBUFFER */ - uint surfWidth = lp->framebuffer.width; - uint surfHeight = lp->framebuffer.height; + uint surfWidth = lp->framebuffer_width; + uint surfHeight = lp->framebuffer_height; /* LP_NEW_RASTERIZER */ diff --git a/src/gallium/drivers/llvmpipe/lp_state_surface.c b/src/gallium/drivers/llvmpipe/lp_state_surface.c index e37ff04f3d..f26ad07f99 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_surface.c +++ b/src/gallium/drivers/llvmpipe/lp_state_surface.c @@ -36,6 +36,7 @@ #include "draw/draw_context.h" #include "util/u_format.h" +#include "util/u_surface.h" /** @@ -105,8 +106,9 @@ llvmpipe_set_framebuffer_state(struct pipe_context *pipe, } } - lp->framebuffer.width = fb->width; - lp->framebuffer.height = fb->height; + util_framebuffer_uniform_size( fb, + &lp->framebuffer_width, + &lp->framebuffer_height ); lp->dirty |= LP_NEW_FRAMEBUFFER; } |