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
b7de31ac
There was an error fetching the commit references. Please try again later.
Commit
b7de31ac
authored
5 years ago
by
Fernando Sahmkow
Committed by
ReinUsesLisp
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
shader_ir: Fix image copy rebase issues
parent
6f69f068
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/shader/decode/image.cpp
+7
-2
7 additions, 2 deletions
src/video_core/shader/decode/image.cpp
with
7 additions
and
2 deletions
src/video_core/shader/decode/image.cpp
+
7
−
2
View file @
b7de31ac
...
...
@@ -3,10 +3,15 @@
// Refer to the license.txt file included.
#include
<algorithm>
#include
<vector>
#include
<fmt/format.h>
#include
"common/assert.h"
#include
"common/bit_field.h"
#include
"common/common_types.h"
#include
"common/logging/log.h"
#include
"video_core/engines/shader_bytecode.h"
#include
"video_core/shader/node_helper.h"
#include
"video_core/shader/shader_ir.h"
namespace
VideoCommon
::
Shader
{
...
...
@@ -92,8 +97,8 @@ const Image& ShaderIR::GetBindlessImage(Tegra::Shader::Register reg,
const
Node
image_register
{
GetRegister
(
reg
)};
const
Node
base_image
{
TrackCbuf
(
image_register
,
global_code
,
static_cast
<
s64
>
(
global_code
.
size
()))};
const
auto
cbuf
{
std
::
get_if
<
CbufNode
>
(
base_image
)};
const
auto
cbuf_offset_imm
{
std
::
get_if
<
ImmediateNode
>
(
cbuf
->
GetOffset
())};
const
auto
cbuf
{
std
::
get_if
<
CbufNode
>
(
&*
base_image
)};
const
auto
cbuf_offset_imm
{
std
::
get_if
<
ImmediateNode
>
(
&*
cbuf
->
GetOffset
())};
const
auto
cbuf_offset
{
cbuf_offset_imm
->
GetValue
()};
const
auto
cbuf_index
{
cbuf
->
GetIndex
()};
const
auto
cbuf_key
{(
static_cast
<
u64
>
(
cbuf_index
)
<<
32
)
|
static_cast
<
u64
>
(
cbuf_offset
)};
...
...
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