diff options
author | Roland Scheidegger <[email protected]> | 2016-01-02 04:58:37 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2016-01-08 00:34:14 +0100 |
commit | fad283ba9e691d0d5d170f388e75542f2c39e559 (patch) | |
tree | bab379cb5a249b98d56903589b7f39ba7453148f /src/gallium/drivers/llvmpipe/lp_rast.h | |
parent | b61b9a377edb566af2f015c159f5f8779d9b27d9 (diff) |
llvmpipe: don't store eo as 64bit int
eo, just like dcdx and dcdy, cannot overflow 32bit.
Store it as unsigned though just in case (it cannot be negative, but
in theory twice as big as dcdx or dcdy so this gives it one more bit).
This doesn't really change anything, albeit it might help minimally on
32bit archs.
Reviewed-by: Jose Fonseca <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_rast.h')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_rast.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast.h b/src/gallium/drivers/llvmpipe/lp_rast.h index c19f9318006..db45cbbb057 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast.h +++ b/src/gallium/drivers/llvmpipe/lp_rast.h @@ -115,7 +115,7 @@ struct lp_rast_plane { int32_t dcdy; /* one-pixel sized trivial reject offsets for each plane */ - int64_t eo; + uint32_t eo; }; /** |