diff options
author | Eric Anholt <eric@anholt.net> | 2015-07-02 13:57:05 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2015-07-10 09:42:58 -0700 |
commit | fde13565c1b2462ee38f2a446ad3c9157261afa2 (patch) | |
tree | 5644c091b75da7ff5f0b5d84f1a34ffbcc61f1dd /glamor | |
parent | ab5aa270c79d70f095bc7abadeef227b4062027c (diff) |
glamor: Drop unused box translation/bounds code.
These are dead since the glamor_copy.c replacement.
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'glamor')
-rw-r--r-- | glamor/glamor_utils.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/glamor/glamor_utils.h b/glamor/glamor_utils.h index 8a96c6174..e648af2de 100644 --- a/glamor/glamor_utils.h +++ b/glamor/glamor_utils.h @@ -697,45 +697,6 @@ (c)[1] = (float)y; \ } while(0) -inline static void -glamor_calculate_boxes_bound(BoxPtr bound, BoxPtr boxes, int nbox) -{ - int x_min, y_min; - int x_max, y_max; - int i; - - x_min = y_min = MAXSHORT; - x_max = y_max = MINSHORT; - for (i = 0; i < nbox; i++) { - if (x_min > boxes[i].x1) - x_min = boxes[i].x1; - if (y_min > boxes[i].y1) - y_min = boxes[i].y1; - - if (x_max < boxes[i].x2) - x_max = boxes[i].x2; - if (y_max < boxes[i].y2) - y_max = boxes[i].y2; - } - bound->x1 = x_min; - bound->y1 = y_min; - bound->x2 = x_max; - bound->y2 = y_max; -} - -inline static void -glamor_translate_boxes(BoxPtr boxes, int nbox, int dx, int dy) -{ - int i; - - for (i = 0; i < nbox; i++) { - boxes[i].x1 += dx; - boxes[i].y1 += dy; - boxes[i].x2 += dx; - boxes[i].y2 += dy; - } -} - #ifndef ARRAY_SIZE #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0])) #endif |