Skip to content
Snippets Groups Projects
Commit 6a28a668 authored by bunnei's avatar bunnei
Browse files

maxwell_3d: Add a struct for RenderTargetConfig.

parent 1bbbd265
No related branches found
No related tags found
No related merge requests found
...@@ -321,6 +321,24 @@ public: ...@@ -321,6 +321,24 @@ public:
INSERT_PADDING_WORDS(1); INSERT_PADDING_WORDS(1);
}; };
struct RenderTargetConfig {
u32 address_high;
u32 address_low;
u32 width;
u32 height;
Tegra::RenderTargetFormat 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);
}
};
union { union {
struct { struct {
INSERT_PADDING_WORDS(0x45); INSERT_PADDING_WORDS(0x45);
...@@ -333,23 +351,7 @@ public: ...@@ -333,23 +351,7 @@ public:
INSERT_PADDING_WORDS(0x1B8); INSERT_PADDING_WORDS(0x1B8);
struct { RenderTargetConfig rt[NumRenderTargets];
u32 address_high;
u32 address_low;
u32 width;
u32 height;
Tegra::RenderTargetFormat 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];
struct { struct {
f32 scale_x; f32 scale_x;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment