From a1276bfdd8ea2c2840f3ea8edd3cea8720804498 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Tue, 13 Oct 2009 13:47:51 +0100 Subject: pipebuffer: is_texture/buffer_referenced helper. A hash table would be more efficient, but this likely isn't used often enough to make a difference. --- src/gallium/auxiliary/pipebuffer/pb_validate.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gallium/auxiliary/pipebuffer/pb_validate.h') diff --git a/src/gallium/auxiliary/pipebuffer/pb_validate.h b/src/gallium/auxiliary/pipebuffer/pb_validate.h index 3db1d5330b..1da7b1a6cf 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_validate.h +++ b/src/gallium/auxiliary/pipebuffer/pb_validate.h @@ -60,6 +60,14 @@ enum pipe_error pb_validate_add_buffer(struct pb_validate *vl, struct pb_buffer *buf); +/** + * Helper for pipe_context::is_texture_referenced and + * pipe_context::is_buffer_referenced + */ +unsigned +pb_validate_is_buffer_referenced(struct pb_validate *vl, + struct pb_buffer *buf); + /** * Validate all buffers for hardware access. * -- cgit v1.2.3