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
d2ea592d
There was an error fetching the commit references. Please try again later.
Commit
d2ea592d
authored
5 years ago
by
Fernando Sahmkow
Committed by
FernandoS27
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Rasterizer: Address Feedback and conscerns.
parent
c17655ce
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/renderer_opengl/gl_rasterizer.cpp
+11
-11
11 additions, 11 deletions
src/video_core/renderer_opengl/gl_rasterizer.cpp
with
11 additions
and
11 deletions
src/video_core/renderer_opengl/gl_rasterizer.cpp
+
11
−
11
View file @
d2ea592d
...
...
@@ -728,19 +728,19 @@ void RasterizerOpenGL::DrawPrelude() {
}
struct
DrawParams
{
bool
is_indexed
;
bool
is_instanced
;
GLenum
primitive_mode
;
GLint
count
;
GLint
base_vertex
;
bool
is_indexed
{}
;
bool
is_instanced
{}
;
GLenum
primitive_mode
{}
;
GLint
count
{}
;
GLint
base_vertex
{}
;
// Indexed settings
GLenum
index_format
;
GLintptr
index_buffer_offset
;
GLenum
index_format
{}
;
GLintptr
index_buffer_offset
{}
;
// Instanced setting
GLint
num_instances
;
GLint
base_instance
;
GLint
num_instances
{}
;
GLint
base_instance
{}
;
void
DispatchDraw
()
{
if
(
is_indexed
)
{
...
...
@@ -770,7 +770,7 @@ void RasterizerOpenGL::DrawArrays() {
auto
&
maxwell3d
=
system
.
GPU
().
Maxwell3D
();
const
auto
&
regs
=
maxwell3d
.
regs
;
const
auto
current_instance
=
maxwell3d
.
state
.
current_instance
;
DrawParams
draw_call
;
DrawParams
draw_call
{}
;
draw_call
.
is_indexed
=
accelerate_draw
==
AccelDraw
::
Indexed
;
draw_call
.
num_instances
=
static_cast
<
GLint
>
(
1
);
draw_call
.
base_instance
=
static_cast
<
GLint
>
(
current_instance
);
...
...
@@ -797,7 +797,7 @@ void RasterizerOpenGL::DrawMultiArrays() {
auto
&
maxwell3d
=
system
.
GPU
().
Maxwell3D
();
const
auto
&
regs
=
maxwell3d
.
regs
;
const
auto
&
draw_setup
=
maxwell3d
.
mme_draw
;
DrawParams
draw_call
;
DrawParams
draw_call
{}
;
draw_call
.
is_indexed
=
draw_setup
.
current_mode
==
Tegra
::
Engines
::
Maxwell3D
::
MMMEDrawMode
::
Indexed
;
draw_call
.
num_instances
=
static_cast
<
GLint
>
(
draw_setup
.
instance_count
);
...
...
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