mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
intel/perf: move perf-related constants to common location
The perf subsystem needs several macro definitions that were duplicated in Iris and i965 headers. Place these macros within perf, if the perf implementation contains the only references to the values. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
67675a5802
commit
2446f5cfd8
5 changed files with 23 additions and 22 deletions
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include "perf/gen_perf.h"
|
||||
#include "pipe/p_defines.h"
|
||||
#include "pipe/p_state.h"
|
||||
#include "pipe/p_context.h"
|
||||
|
|
|
|||
|
|
@ -70,6 +70,27 @@ struct gen_pipeline_stat {
|
|||
*/
|
||||
#define MAX_OA_REPORT_COUNTERS 62
|
||||
|
||||
#define IA_VERTICES_COUNT 0x2310
|
||||
#define IA_PRIMITIVES_COUNT 0x2318
|
||||
#define VS_INVOCATION_COUNT 0x2320
|
||||
#define HS_INVOCATION_COUNT 0x2300
|
||||
#define DS_INVOCATION_COUNT 0x2308
|
||||
#define GS_INVOCATION_COUNT 0x2328
|
||||
#define GS_PRIMITIVES_COUNT 0x2330
|
||||
#define CL_INVOCATION_COUNT 0x2338
|
||||
#define CL_PRIMITIVES_COUNT 0x2340
|
||||
#define PS_INVOCATION_COUNT 0x2348
|
||||
#define CS_INVOCATION_COUNT 0x2290
|
||||
#define PS_DEPTH_COUNT 0x2350
|
||||
|
||||
/*
|
||||
* When currently allocate only one page for pipeline statistics queries. Here
|
||||
* we derived the maximum number of counters for that amount.
|
||||
*/
|
||||
#define STATS_BO_SIZE 4096
|
||||
#define STATS_BO_END_OFFSET_BYTES (STATS_BO_SIZE / 2)
|
||||
#define MAX_STAT_COUNTERS (STATS_BO_END_OFFSET_BYTES / 8)
|
||||
|
||||
struct gen_perf_query_result {
|
||||
/**
|
||||
* Storage for the final accumulated OA counters.
|
||||
|
|
|
|||
|
|
@ -1523,20 +1523,6 @@ enum brw_pixel_shader_coverage_mask_mode {
|
|||
#define BR13_16161616 (0x4 << 24)
|
||||
#define BR13_32323232 (0x5 << 24)
|
||||
|
||||
/* Pipeline Statistics Counter Registers */
|
||||
#define IA_VERTICES_COUNT 0x2310
|
||||
#define IA_PRIMITIVES_COUNT 0x2318
|
||||
#define VS_INVOCATION_COUNT 0x2320
|
||||
#define HS_INVOCATION_COUNT 0x2300
|
||||
#define DS_INVOCATION_COUNT 0x2308
|
||||
#define GS_INVOCATION_COUNT 0x2328
|
||||
#define GS_PRIMITIVES_COUNT 0x2330
|
||||
#define CL_INVOCATION_COUNT 0x2338
|
||||
#define CL_PRIMITIVES_COUNT 0x2340
|
||||
#define PS_INVOCATION_COUNT 0x2348
|
||||
#define CS_INVOCATION_COUNT 0x2290
|
||||
#define PS_DEPTH_COUNT 0x2350
|
||||
|
||||
#define GEN6_SO_PRIM_STORAGE_NEEDED 0x2280
|
||||
#define GEN7_SO_PRIM_STORAGE_NEEDED(n) (0x5240 + (n) * 8)
|
||||
|
||||
|
|
|
|||
|
|
@ -32,14 +32,6 @@
|
|||
|
||||
struct gen_perf_query_info;
|
||||
|
||||
/*
|
||||
* When currently allocate only one page for pipeline statistics queries. Here
|
||||
* we derived the maximum number of counters for that amount.
|
||||
*/
|
||||
#define STATS_BO_SIZE 4096
|
||||
#define STATS_BO_END_OFFSET_BYTES (STATS_BO_SIZE / 2)
|
||||
#define MAX_STAT_COUNTERS (STATS_BO_END_OFFSET_BYTES / 8)
|
||||
|
||||
/**
|
||||
* i965 representation of a performance query object.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@
|
|||
#include "brw_context.h"
|
||||
#include "brw_defines.h"
|
||||
#include "brw_state.h"
|
||||
#include "perf/gen_perf.h"
|
||||
#include "intel_batchbuffer.h"
|
||||
#include "intel_buffer_objects.h"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue