~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/gallium/auxiliary/util/u_surface.h

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#define U_SURFACE_H
30
30
 
31
31
 
32
 
#include "pipe/p_compiler.h"
 
32
#include "util/compiler.h"
33
33
#include "pipe/p_state.h"
34
34
 
35
35
#include "util/u_pack_color.h"
45
45
                           const struct pipe_resource *texture);
46
46
 
47
47
extern void
48
 
util_copy_box(ubyte * dst,
 
48
util_copy_box(uint8_t * dst,
49
49
              enum pipe_format format,
50
 
              unsigned dst_stride, unsigned dst_slice_stride,
 
50
              unsigned dst_stride, uint64_t dst_slice_stride,
51
51
              unsigned dst_x, unsigned dst_y, unsigned dst_z,
52
52
              unsigned width, unsigned height, unsigned depth,
53
 
              const ubyte * src,
54
 
              int src_stride, unsigned src_slice_stride,
 
53
              const uint8_t * src,
 
54
              int src_stride, uint64_t src_slice_stride,
55
55
              unsigned src_x, unsigned src_y, unsigned src_z);
56
56
 
57
57
extern void
58
 
util_fill_rect(ubyte * dst, enum pipe_format format,
 
58
util_fill_rect(uint8_t * dst, enum pipe_format format,
59
59
               unsigned dst_stride, unsigned dst_x, unsigned dst_y,
60
60
               unsigned width, unsigned height, union util_color *uc);
61
61
 
62
62
extern void
63
 
util_fill_box(ubyte * dst, enum pipe_format format,
64
 
              unsigned stride, unsigned layer_stride,
 
63
util_fill_box(uint8_t * dst, enum pipe_format format,
 
64
              unsigned stride, uintptr_t layer_stride,
65
65
              unsigned x, unsigned y, unsigned z,
66
66
              unsigned width, unsigned height, unsigned depth,
67
67
              union util_color *uc);
68
68
 
69
69
extern void
70
 
util_fill_zs_box(ubyte *dst, enum pipe_format format,
 
70
util_fill_zs_box(uint8_t *dst, enum pipe_format format,
71
71
                 bool need_rmw, unsigned clear_flags, unsigned stride,
72
72
                 unsigned layer_stride, unsigned width,
73
73
                 unsigned height, unsigned depth,
83
83
                          const struct pipe_box *src_box);
84
84
 
85
85
extern void
86
 
util_clear_texture(struct pipe_context *pipe,
87
 
                   struct pipe_resource *tex,
88
 
                   unsigned level,
89
 
                   const struct pipe_box *box,
90
 
                   const void *data);
 
86
u_default_clear_texture(struct pipe_context *pipe,
 
87
                        struct pipe_resource *tex,
 
88
                        unsigned level,
 
89
                        const struct pipe_box *box,
 
90
                        const void *data);
 
91
 
 
92
extern void
 
93
util_clear_texture_sw(struct pipe_context *pipe,
 
94
                      struct pipe_resource *tex,
 
95
                      unsigned level,
 
96
                      const struct pipe_box *box,
 
97
                      const void *data);
91
98
 
92
99
extern void
93
100
util_clear_render_target(struct pipe_context *pipe,