diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-01-01 16:47:12 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-01-09 21:44:08 +0100 |
commit | 8cb60c7dd3cb608615d3e5f89ad4198c0babdb3d (patch) | |
tree | 0a5a7651fced7daf712da778e22637529832b0e8 /src/amd/common/sid.h | |
parent | 97dfff54105ac10b6e2daace020687eefdcc28c0 (diff) |
ac/debug: Dump indirect buffers.
This is for handling chained command buffers and secondary command
buffers. It doesn't handle the trace id for secondary command buffers
yet, but I don't think that is possible in general with just writes,
as we could call a secondary command buffer multiple times.
I think this is good enough for now, as the most useful case is the
chaining when we grow an IB.
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/common/sid.h')
-rw-r--r-- | src/amd/common/sid.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/common/sid.h b/src/amd/common/sid.h index fc21a184cb0..285cfbfb62f 100644 --- a/src/amd/common/sid.h +++ b/src/amd/common/sid.h @@ -133,7 +133,9 @@ #define R_3F1_IB_BASE_HI 0x3F1 #define R_3F2_CONTROL 0x3F2 #define S_3F2_IB_SIZE(x) (((unsigned)(x) & 0xfffff) << 0) +#define G_3F2_IB_SIZE(x) (((unsigned)(x) >> 0) & 0xfffff) #define S_3F2_CHAIN(x) (((unsigned)(x) & 0x1) << 20) +#define G_3F2_CHAIN(x) (((unsigned)(x) >> 20) & 0x1) #define S_3F2_VALID(x) (((unsigned)(x) & 0x1) << 23) #define PKT3_COPY_DATA 0x40 |