summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_scene.h
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2013-05-29 01:36:43 +0200
committerRoland Scheidegger <sroland@vmware.com>2013-05-31 20:21:05 +0200
commite881c9a5dc5457f0b096a3c583c5b1450beb89e9 (patch)
treed4f859954289a482301de16477cd1429fb28005b /src/gallium/drivers/llvmpipe/lp_scene.h
parenteb4c992ea5e69083d2bc705d2460ce956c5063a7 (diff)
downloadexternal_mesa3d-e881c9a5dc5457f0b096a3c583c5b1450beb89e9.zip
external_mesa3d-e881c9a5dc5457f0b096a3c583c5b1450beb89e9.tar.gz
external_mesa3d-e881c9a5dc5457f0b096a3c583c5b1450beb89e9.tar.bz2
llvmpipe: Remove x/y from cmd_bin
These were mostly just a waste of memory and cache pressure, and were really only used for debugging. This change reduces instruction count (as measured by callgrind's Ir event) of gnome-shell-perf-tool on Ivybridge by 3.5% ± 0.015% (n=20). Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_scene.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_scene.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_scene.h b/src/gallium/drivers/llvmpipe/lp_scene.h
index 1d0cd0e..fa5bbca 100644
--- a/src/gallium/drivers/llvmpipe/lp_scene.h
+++ b/src/gallium/drivers/llvmpipe/lp_scene.h
@@ -94,8 +94,6 @@ struct data_block {
* For each screen tile we have one of these bins.
*/
struct cmd_bin {
- ushort x;
- ushort y;
const struct lp_rast_state *last_state; /* most recent state set in bin */
struct cmd_block *head;
struct cmd_block *tail;
@@ -375,7 +373,7 @@ void
lp_scene_bin_iter_begin( struct lp_scene *scene );
struct cmd_bin *
-lp_scene_bin_iter_next( struct lp_scene *scene );
+lp_scene_bin_iter_next( struct lp_scene *scene, int *x, int *y );