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
e7b0e8a3
There was an error fetching the commit references. Please try again later.
Commit
e7b0e8a3
authored
6 years ago
by
David Marcec
Browse files
Options
Downloads
Patches
Plain Diff
More accurate GetTPCMasks impl
parent
5e9c5479
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp
+7
-3
7 additions, 3 deletions
src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp
src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h
+1
-1
1 addition, 1 deletion
src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h
with
8 additions
and
4 deletions
src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp
+
7
−
3
View file @
e7b0e8a3
...
@@ -77,9 +77,13 @@ u32 nvhost_ctrl_gpu::GetCharacteristics(const std::vector<u8>& input, std::vecto
...
@@ -77,9 +77,13 @@ u32 nvhost_ctrl_gpu::GetCharacteristics(const std::vector<u8>& input, std::vecto
u32
nvhost_ctrl_gpu
::
GetTPCMasks
(
const
std
::
vector
<
u8
>&
input
,
std
::
vector
<
u8
>&
output
)
{
u32
nvhost_ctrl_gpu
::
GetTPCMasks
(
const
std
::
vector
<
u8
>&
input
,
std
::
vector
<
u8
>&
output
)
{
IoctlGpuGetTpcMasksArgs
params
{};
IoctlGpuGetTpcMasksArgs
params
{};
std
::
memcpy
(
&
params
,
input
.
data
(),
input
.
size
());
std
::
memcpy
(
&
params
,
input
.
data
(),
input
.
size
());
NGLOG_WARNING
(
Service_NVDRV
,
"(STUBBED) called, mask=0x{:X}, mask_buf_addr=0x{:X}"
,
NGLOG_INFO
(
Service_NVDRV
,
"called, mask=0x{:X}, mask_buf_addr=0x{:X}"
,
params
.
mask_buf_size
,
params
.
mask_buf_size
,
params
.
mask_buf_addr
);
params
.
mask_buf_addr
);
params
.
unk
=
0xcafe
;
// TODO(ogniK): Needs to be non 0, what does this actually do?
// TODO(ogniK): Confirm value on hardware
if
(
params
.
mask_buf_size
)
params
.
tpc_mask_size
=
4
*
1
;
// 4 * num_gpc
else
params
.
tpc_mask_size
=
0
;
std
::
memcpy
(
output
.
data
(),
&
params
,
sizeof
(
params
));
std
::
memcpy
(
output
.
data
(),
&
params
,
sizeof
(
params
));
return
0
;
return
0
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h
+
1
−
1
View file @
e7b0e8a3
...
@@ -86,7 +86,7 @@ private:
...
@@ -86,7 +86,7 @@ private:
/// [in] pointer to TPC mask buffer. It will receive one 32-bit TPC mask per GPC or 0 if
/// [in] pointer to TPC mask buffer. It will receive one 32-bit TPC mask per GPC or 0 if
/// GPC is not enabled or not present. This parameter is ignored if mask_buf_size is 0.
/// GPC is not enabled or not present. This parameter is ignored if mask_buf_size is 0.
u64_le
mask_buf_addr
;
u64_le
mask_buf_addr
;
u64_le
unk
;
// Nintendo add this?
u64_le
tpc_mask_size
;
// Nintendo add this?
};
};
static_assert
(
sizeof
(
IoctlGpuGetTpcMasksArgs
)
==
24
,
static_assert
(
sizeof
(
IoctlGpuGetTpcMasksArgs
)
==
24
,
"IoctlGpuGetTpcMasksArgs is incorrect size"
);
"IoctlGpuGetTpcMasksArgs is incorrect size"
);
...
...
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