diff options
author | José Fonseca <[email protected]> | 2008-11-24 13:59:06 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-11-24 13:59:06 +0900 |
commit | a6d866f72c88d48d2bcfb3e3c882fdb639b5a8ce (patch) | |
tree | 200cb8e07bf58d0dd8e220ba6b5af0b074804b15 /src/gallium/auxiliary/pipebuffer/pb_winsys.c | |
parent | d600c805c08288757185ce3af24b5f0a866bb0b2 (diff) |
pipebuffer: Implement proper buffer validation.
Diffstat (limited to 'src/gallium/auxiliary/pipebuffer/pb_winsys.c')
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_winsys.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/pipebuffer/pb_winsys.c b/src/gallium/auxiliary/pipebuffer/pb_winsys.c index 28d137dbc43..45a883e5322 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_winsys.c +++ b/src/gallium/auxiliary/pipebuffer/pb_winsys.c @@ -30,7 +30,7 @@ * Implementation of client buffer (also designated as "user buffers"), which * are just state-tracker owned data masqueraded as buffers. * - * \author Jos� Fonseca <[email protected]> + * \author Jose Fonseca <[email protected]> */ @@ -91,6 +91,24 @@ pb_user_buffer_unmap(struct pb_buffer *buf) } +static enum pipe_error +pb_user_buffer_validate(struct pb_buffer *buf, + struct pb_validate *vl, + unsigned flags) +{ + assert(0); + return PIPE_ERROR; +} + + +static void +pb_user_buffer_fence(struct pb_buffer *buf, + struct pipe_fence_handle *fence) +{ + assert(0); +} + + static void pb_user_buffer_get_base_buffer(struct pb_buffer *buf, struct pb_buffer **base_buf, @@ -106,6 +124,8 @@ pb_user_buffer_vtbl = { pb_user_buffer_destroy, pb_user_buffer_map, pb_user_buffer_unmap, + pb_user_buffer_validate, + pb_user_buffer_fence, pb_user_buffer_get_base_buffer }; |