Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
mesa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2,318
Issues
2,318
List
Boards
Labels
Service Desk
Milestones
Merge Requests
632
Merge Requests
632
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mesa
mesa
Commits
620c1f15
Commit
620c1f15
authored
Nov 30, 2010
by
Brian Paul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
llvmpipe: also record the jit task in the fs jit debug code
parent
69e90649
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
src/gallium/drivers/llvmpipe/lp_rast.c
src/gallium/drivers/llvmpipe/lp_rast.c
+3
-2
src/gallium/drivers/llvmpipe/lp_rast_priv.h
src/gallium/drivers/llvmpipe/lp_rast_priv.h
+6
-3
No files found.
src/gallium/drivers/llvmpipe/lp_rast.c
View file @
620c1f15
...
...
@@ -47,6 +47,7 @@
#ifdef DEBUG
int
jit_line
=
0
;
const
struct
lp_rast_state
*
jit_state
=
NULL
;
const
struct
lp_rasterizer_task
*
jit_task
=
NULL
;
#endif
...
...
@@ -362,7 +363,7 @@ lp_rast_shade_tile(struct lp_rasterizer_task *task,
depth
=
lp_rast_get_depth_block_pointer
(
task
,
tile_x
+
x
,
tile_y
+
y
);
/* run shader on 4x4 block */
BEGIN_JIT_CALL
(
state
);
BEGIN_JIT_CALL
(
state
,
task
);
variant
->
jit_function
[
RAST_WHOLE
](
&
state
->
jit_context
,
tile_x
+
x
,
tile_y
+
y
,
inputs
->
frontfacing
,
...
...
@@ -443,7 +444,7 @@ lp_rast_shade_quads_mask(struct lp_rasterizer_task *task,
assert
(
lp_check_alignment
(
state
->
jit_context
.
blend_color
,
16
));
/* run shader on 4x4 block */
BEGIN_JIT_CALL
(
state
);
BEGIN_JIT_CALL
(
state
,
task
);
variant
->
jit_function
[
RAST_EDGE_TEST
](
&
state
->
jit_context
,
x
,
y
,
inputs
->
frontfacing
,
...
...
src/gallium/drivers/llvmpipe/lp_rast_priv.h
View file @
620c1f15
...
...
@@ -45,13 +45,16 @@
*/
#ifdef DEBUG
struct
lp_rasterizer_task
;
extern
int
jit_line
;
extern
const
struct
lp_rast_state
*
jit_state
;
extern
const
struct
lp_rasterizer_task
*
jit_task
;
#define BEGIN_JIT_CALL(state
)
\
#define BEGIN_JIT_CALL(state
, task)
\
do { \
jit_line = __LINE__; \
jit_state = state; \
jit_task = task; \
} while (0)
#define END_JIT_CALL() \
...
...
@@ -62,7 +65,7 @@ extern const struct lp_rast_state *jit_state;
#else
#define BEGIN_JIT_CALL(X)
#define BEGIN_JIT_CALL(X
, Y
)
#define END_JIT_CALL()
#endif
...
...
@@ -258,7 +261,7 @@ lp_rast_shade_quads_all( struct lp_rasterizer_task *task,
depth
=
lp_rast_get_depth_block_pointer
(
task
,
x
,
y
);
/* run shader on 4x4 block */
BEGIN_JIT_CALL
(
state
);
BEGIN_JIT_CALL
(
state
,
task
);
variant
->
jit_function
[
RAST_WHOLE
](
&
state
->
jit_context
,
x
,
y
,
inputs
->
frontfacing
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment