diff options
author | Marek Olšák <[email protected]> | 2012-08-24 05:57:22 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-08-30 19:43:55 +0200 |
commit | 187d7fb2fec7da889f25366696faaac4c2e8f9c4 (patch) | |
tree | bd46f0a9e4fdb3309bc4b2e043b76d4db3a141af /src/gallium/drivers/r600/r600_pipe.h | |
parent | 8698a3b85dd89c5d2fa473e7942b7dc8d25f3c8f (diff) |
r600g: implement draw_rectangle callback
The color resolve on r6xx needs PT_RECTLIST. Using conventional primitive
types (triangles and quads) produces an ugly line between two diagonally
opposite corners. I guess a rectangular point sprite would work too.
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h index 074eed432dc..9cbf0c88e64 100644 --- a/src/gallium/drivers/r600/r600_pipe.h +++ b/src/gallium/drivers/r600/r600_pipe.h @@ -26,6 +26,7 @@ #ifndef R600_PIPE_H #define R600_PIPE_H +#include "util/u_blitter.h" #include "util/u_slab.h" #include "r600.h" #include "r600_llvm.h" @@ -638,6 +639,9 @@ void r600_set_sample_mask(struct pipe_context *pipe, unsigned sample_mask); void r600_set_pipe_stencil_ref(struct pipe_context *ctx, const struct pipe_stencil_ref *state); void r600_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info); +void r600_draw_rectangle(struct blitter_context *blitter, + unsigned x1, unsigned y1, unsigned x2, unsigned y2, float depth, + enum blitter_attrib_type type, const union pipe_color_union *attrib); uint32_t r600_translate_stencil_op(int s_op); uint32_t r600_translate_fill(uint32_t func); unsigned r600_tex_wrap(unsigned wrap); |