~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/freedreno/common/freedreno_dev_info.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:
38
38
 */
39
39
 
40
40
struct fd_dev_info {
 
41
   uint8_t chip;
 
42
 
41
43
   /* alignment for size of tiles */
42
44
   uint32_t tile_align_w, tile_align_h;
43
45
   /* gmem load/store granularity */
146
148
         bool has_lrz_dir_tracking;
147
149
         bool lrz_track_quirk;
148
150
 
 
151
         /* Some generations have a bit to add the multiview index to the
 
152
          * viewport index, which lets us implement different scaling for
 
153
          * different views.
 
154
          */
 
155
         bool has_per_view_viewport;
 
156
 
149
157
         struct {
150
158
            uint32_t PC_POWER_CNTL;
151
159
            uint32_t TPL1_DBG_ECO_CNTL;
189
197
   return id->gpu_id;
190
198
}
191
199
 
 
200
const struct fd_dev_info * fd_dev_info(const struct fd_dev_id *id);
 
201
 
192
202
static uint8_t
193
203
fd_dev_gen(const struct fd_dev_id *id)
194
204
{
195
 
   return fd_dev_gpu_id(id) / 100;
 
205
   return fd_dev_info(id)->chip;
196
206
}
197
207
 
198
208
static inline bool
212
222
 */
213
223
#define A6XX_CCU_GMEM_COLOR_SIZE (16 * 1024)
214
224
 
215
 
const struct fd_dev_info * fd_dev_info(const struct fd_dev_id *id);
216
225
const char * fd_dev_name(const struct fd_dev_id *id);
217
226
 
218
227
#ifdef __cplusplus