~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/gallium/drivers/llvmpipe/lp_linear_priv.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:
27
27
   int dtdx;                    /* 16.16 */
28
28
   int dtdy;                    /* 16.16 */
29
29
   int width;
30
 
   boolean axis_aligned;
 
30
   bool axis_aligned;
31
31
 
32
32
   alignas(16) uint32_t row[64];
33
33
   alignas(16) uint32_t stretched_row[2][64];
68
68
 * implementation - normalized texcoords, single mipmap with
69
69
 * nearest filtering.
70
70
 */
71
 
static inline boolean
 
71
static inline bool
72
72
is_nearest_sampler(const struct lp_sampler_static_state *sampler)
73
73
{
74
74
   return
86
86
 * implementation - normalized texcoords, single mipmap with
87
87
 * linear filtering.
88
88
 */
89
 
static inline boolean
 
89
static inline bool
90
90
is_linear_sampler(const struct lp_sampler_static_state *sampler)
91
91
{
92
92
   return
103
103
/* Check for a sampler variant which matches is_nearest_sampler
104
104
 * but has the additional constraints of using clamp wrapping
105
105
 */
106
 
static inline boolean
 
106
static inline bool
107
107
is_nearest_clamp_sampler(const struct lp_sampler_static_state *sampler)
108
108
{
109
109
   return
116
116
/* Check for a sampler variant which matches is_linear_sampler
117
117
 * but has the additional constraints of using clamp wrapping
118
118
 */
119
 
static inline boolean
 
119
static inline bool
120
120
is_linear_clamp_sampler(const struct lp_sampler_static_state *sampler)
121
121
{
122
122
   return
126
126
}
127
127
 
128
128
 
129
 
boolean
 
129
bool
130
130
lp_linear_init_interp(struct lp_linear_interp *interp,
131
131
                      int x, int y, int width, int height,
132
132
                      unsigned usage_mask,
133
 
                      boolean perspective,
 
133
                      bool perspective,
134
134
                      float oow,
135
135
                      const float *a0,
136
136
                      const float *dadx,
137
137
                      const float *dady);
138
138
 
139
 
boolean
 
139
bool
140
140
lp_linear_init_sampler(struct lp_linear_sampler *samp,
141
141
                       const struct lp_tgsi_texture_info *info,
142
142
                       const struct lp_sampler_static_state *sampler_state,
144
144
                       int x0, int y0, int width, int height,
145
145
                       const float (*a0)[4],
146
146
                       const float (*dadx)[4],
147
 
                       const float (*dady)[4]);
148
 
 
149
 
 
150
 
boolean
 
147
                       const float (*dady)[4], bool rgba_order);
 
148
 
 
149
 
 
150
bool
151
151
lp_linear_check_fastpath(struct lp_fragment_shader_variant *variant);
152
152
 
153
 
boolean
 
153
bool
154
154
lp_linear_check_sampler(const struct lp_sampler_static_state *sampler,
155
155
                        const struct lp_tgsi_texture_info *tex);
156
156
 
165
165
#define FAIL(s) do {                                    \
166
166
      if (LP_DEBUG & DEBUG_LINEAR)                      \
167
167
         debug_printf("%s: %s\n", __func__, s);         \
168
 
      return FALSE;                                     \
 
168
      return false;                                     \
169
169
} while (0)
170
170
 
171
171
#endif