diff options
Diffstat (limited to 'src/gallium/auxiliary/util/u_helpers.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_helpers.h | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/util/u_helpers.h b/src/gallium/auxiliary/util/u_helpers.h index f08f44dad99..e4ba00b5ac1 100644 --- a/src/gallium/auxiliary/util/u_helpers.h +++ b/src/gallium/auxiliary/util/u_helpers.h @@ -40,15 +40,13 @@ extern "C" { void util_set_vertex_buffers_mask(struct pipe_vertex_buffer *dst, uint32_t *enabled_buffers, const struct pipe_vertex_buffer *src, - unsigned start_slot, unsigned count, - unsigned unbind_num_trailing_slots, + unsigned count, bool take_ownership); void util_set_vertex_buffers_count(struct pipe_vertex_buffer *dst, unsigned *dst_count, const struct pipe_vertex_buffer *src, - unsigned start_slot, unsigned count, - unsigned unbind_num_trailing_slots, + unsigned count, bool take_ownership); void util_set_shader_buffers_mask(struct pipe_shader_buffer *dst, @@ -117,10 +115,27 @@ void util_throttle_init(struct util_throttle *t, uint64_t max_mem_usage); void util_throttle_deinit(struct pipe_screen *screen, struct util_throttle *t); void util_throttle_memory_usage(struct pipe_context *pipe, struct util_throttle *t, uint64_t memory_size); +void util_sw_query_memory_info(struct pipe_screen *pscreen, + struct pipe_memory_info *info); bool util_lower_clearsize_to_dword(const void *clearValue, int *clearValueSize, uint32_t *clamped); +void +util_init_pipe_vertex_state(struct pipe_screen *screen, + struct pipe_vertex_buffer *buffer, + const struct pipe_vertex_element *elements, + unsigned num_elements, + struct pipe_resource *indexbuf, + uint32_t full_velem_mask, + struct pipe_vertex_state *state); + +union pipe_color_union util_clamp_color(enum pipe_format format, + const union pipe_color_union *color); + +struct pipe_sampler_view +util_image_to_sampler_view(struct pipe_image_view *v); + #ifdef __cplusplus } #endif |