Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
21d95190
There was an error fetching the commit references. Please try again later.
Commit
21d95190
authored
7 years ago
by
Subv
Browse files
Options
Downloads
Patches
Plain Diff
GPU: Added the render target (RT) registers to Maxwell3D's reg structure.
parent
b2d7c92c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/video_core/engines/maxwell_3d.h
+32
-1
32 additions, 1 deletion
src/video_core/engines/maxwell_3d.h
with
32 additions
and
1 deletion
src/video_core/engines/maxwell_3d.h
+
32
−
1
View file @
21d95190
...
@@ -31,6 +31,7 @@ public:
...
@@ -31,6 +31,7 @@ public:
struct
Regs
{
struct
Regs
{
static
constexpr
size_t
NUM_REGS
=
0xE36
;
static
constexpr
size_t
NUM_REGS
=
0xE36
;
static
constexpr
size_t
NumRenderTargets
=
8
;
static
constexpr
size_t
NumCBData
=
16
;
static
constexpr
size_t
NumCBData
=
16
;
static
constexpr
size_t
NumVertexArrays
=
32
;
static
constexpr
size_t
NumVertexArrays
=
32
;
static
constexpr
size_t
MaxShaderProgram
=
6
;
static
constexpr
size_t
MaxShaderProgram
=
6
;
...
@@ -62,7 +63,35 @@ public:
...
@@ -62,7 +63,35 @@ public:
union
{
union
{
struct
{
struct
{
INSERT_PADDING_WORDS
(
0x557
);
INSERT_PADDING_WORDS
(
0x200
);
struct
{
u32
address_high
;
u32
address_low
;
u32
horiz
;
u32
vert
;
u32
format
;
u32
block_dimensions
;
u32
array_mode
;
u32
layer_stride
;
u32
base_layer
;
INSERT_PADDING_WORDS
(
7
);
GPUVAddr
Address
()
const
{
return
static_cast
<
GPUVAddr
>
((
static_cast
<
GPUVAddr
>
(
address_high
)
<<
32
)
|
address_low
);
}
}
rt
[
NumRenderTargets
];
INSERT_PADDING_WORDS
(
0x207
);
struct
{
union
{
BitField
<
0
,
4
,
u32
>
count
;
};
}
rt_control
;
INSERT_PADDING_WORDS
(
0xCF
);
struct
{
struct
{
u32
tsc_address_high
;
u32
tsc_address_high
;
...
@@ -291,6 +320,8 @@ private:
...
@@ -291,6 +320,8 @@ private:
static_assert(offsetof(Maxwell3D::Regs, field_name) == position * 4, \
static_assert(offsetof(Maxwell3D::Regs, field_name) == position * 4, \
"Field " #field_name " has invalid position")
"Field " #field_name " has invalid position")
ASSERT_REG_POSITION
(
rt
,
0x200
);
ASSERT_REG_POSITION
(
rt_control
,
0x487
);
ASSERT_REG_POSITION
(
tsc
,
0x557
);
ASSERT_REG_POSITION
(
tsc
,
0x557
);
ASSERT_REG_POSITION
(
tic
,
0x55D
);
ASSERT_REG_POSITION
(
tic
,
0x55D
);
ASSERT_REG_POSITION
(
code_address
,
0x582
);
ASSERT_REG_POSITION
(
code_address
,
0x582
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment