[Mesa-dev] [PATCH] st/clover: Fix build after shrink of pipe_box

Francisco Jerez currojerez at riseup.net
Wed Apr 5 01:32:09 UTC 2017


Aaron Watry <awatry at gmail.com> writes:

> Fixes: 3dfe61e ("gallium: decrease the size of pipe_box - 24 -> 16 bytes")
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100569
> Signed-off-by: Aaron Watry <awatry at gmail.com>

Thanks!

Reviewed-by: Francisco Jerez <currojerez at riseup.net>

> ---
>  src/gallium/state_trackers/clover/core/resource.cpp | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/gallium/state_trackers/clover/core/resource.cpp b/src/gallium/state_trackers/clover/core/resource.cpp
> index 28fba1ac1a..79911771a0 100644
> --- a/src/gallium/state_trackers/clover/core/resource.cpp
> +++ b/src/gallium/state_trackers/clover/core/resource.cpp
> @@ -33,9 +33,9 @@ namespace {
>     class box {
>     public:
>        box(const resource::vector &origin, const resource::vector &size) :
> -         pipe({ (int)origin[0], (int)origin[1],
> -                (int)origin[2], (int)size[0],
> -                (int)size[1], (int)size[2] }) {
> +        pipe({ (int)origin[0], (int16_t)origin[1],
> +               (int16_t)origin[2], (int)size[0],
> +               (int16_t)size[1], (int16_t)size[2] }) {
>        }
>  
>        operator const pipe_box *() {
> -- 
> 2.11.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 212 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170404/8342d81c/attachment.sig>


More information about the mesa-dev mailing list