Skip to content

Commit

Permalink
Print gpuid
Browse files Browse the repository at this point in the history
  • Loading branch information
SolDev69 authored Feb 24, 2024
1 parent b7fb227 commit 89bd9f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/panfrost/lib/pan_props.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
#include "pan_util.h"
#include "pan_base.h"

#include <stdio.h>

/* Fixed "minimum revisions" */
#define NO_ANISO (~0)
#define HAS_ANISO (0)
Expand Down Expand Up @@ -98,7 +100,7 @@ const struct panfrost_model panfrost_unknown_model = {
const struct panfrost_model *
panfrost_get_model(uint32_t gpu_id)
{

printf("PAN_OSMESA: GPUID is %i\n", gpu_id);
for (unsigned i = 0; i < ARRAY_SIZE(panfrost_model_list); ++i) {
if (panfrost_model_list[i].gpu_id == gpu_id)
return &panfrost_model_list[i];
Expand Down

0 comments on commit 89bd9f9

Please sign in to comment.