I'm not convinced this is a good idea.
That dilutes the meaning of a "box" quite a bit (and I don't think x/y/z
can actually be negative?). There are presumably also quite a lot of
uses of pipe_box which might not be able to deal with such boxes.
Roland
Am 09.08.2012 18:07, schrieb Marek Olšák:
> This will be used by u_blitter.
> ---
> src/gallium/include/pipe/p_state.h | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/src/gallium/include/pipe/p_state.h
> b/src/gallium/include/pipe/p_state.h
> index c828c80..76559ad 100644
> --- a/src/gallium/include/pipe/p_state.h
> +++ b/src/gallium/include/pipe/p_state.h
> @@ -387,12 +387,12 @@ struct pipe_sampler_view
> */
> struct pipe_box
> {
> - unsigned x;
> - unsigned y;
> - unsigned z;
> - unsigned width;
> - unsigned height;
> - unsigned depth;
> + int x;
> + int y;
> + int z;
> + int width;
> + int height;
> + int depth;
> };
>
>
>
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev