I'd like to have either signed pipe_box or a new struct for that purpose. I assume transfers and resource_copy_region will always be unsigned.
x,y,z don't have to be signed, good point. Marek On Thu, Aug 9, 2012 at 10:38 PM, Roland Scheidegger <srol...@vmware.com> wrote: > 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 > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev