diff options
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_texture.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_texture.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c b/src/gallium/drivers/llvmpipe/lp_texture.c index ee419481d5d..36f1c6b1a20 100644 --- a/src/gallium/drivers/llvmpipe/lp_texture.c +++ b/src/gallium/drivers/llvmpipe/lp_texture.c @@ -542,14 +542,14 @@ llvmpipe_transfer_map( struct pipe_context *pipe, } } - /* Check if we're mapping the current constant buffer */ + /* Check if we're mapping a current constant buffer */ if ((usage & PIPE_TRANSFER_WRITE) && (resource->bind & PIPE_BIND_CONSTANT_BUFFER)) { unsigned i; for (i = 0; i < ARRAY_SIZE(llvmpipe->constants[PIPE_SHADER_FRAGMENT]); ++i) { if (resource == llvmpipe->constants[PIPE_SHADER_FRAGMENT][i].buffer) { /* constants may have changed */ - llvmpipe->dirty |= LP_NEW_CONSTANTS; + llvmpipe->dirty |= LP_NEW_FS_CONSTANTS; break; } } @@ -640,13 +640,6 @@ llvmpipe_is_resource_referenced( struct pipe_context *pipe, unsigned level) { struct llvmpipe_context *llvmpipe = llvmpipe_context( pipe ); - - /* - * XXX checking only resources with the right bind flags - * is unsafe since with opengl state tracker we can end up - * with resources bound to places they weren't supposed to be - * (buffers bound as sampler views is one possibility here). - */ if (!(presource->bind & (PIPE_BIND_DEPTH_STENCIL | PIPE_BIND_RENDER_TARGET | PIPE_BIND_SAMPLER_VIEW))) @@ -687,6 +680,7 @@ llvmpipe_get_format_alignment( enum pipe_format format ) /** * Create buffer which wraps user-space data. + * XXX unreachable. */ struct pipe_resource * llvmpipe_user_buffer_create(struct pipe_screen *screen, |