Re: [PATCH 2/2] protocol: Add buffer_scale to wl_surface and wl_output

2013-05-14 Thread Pekka Paalanen
On Tue, 14 May 2013 12:48:39 -0700 Bill Spitzak wrote: > Pekka Paalanen wrote: > > > You cannot get an identity by multiplying real-valued transformations > > together, other than by accident. > > This is why I propose sending the inverse of the matrix, so the identity > can be checked accurat

Re: [PATCH 2/2] protocol: Add buffer_scale to wl_surface and wl_output

2013-05-14 Thread Bill Spitzak
Pekka Paalanen wrote: You cannot get an identity by multiplying real-valued transformations together, other than by accident. This is why I propose sending the inverse of the matrix, so the identity can be checked accurately. It also happens that the inverse matrix is the same matrix that is

Re: [PATCH 2/2] protocol: Add buffer_scale to wl_surface and wl_output

2013-05-13 Thread Pekka Paalanen
On Mon, 13 May 2013 19:02:34 -0700 Bill Spitzak wrote: > Alexander Larsson wrote: > > > On ons, 2013-05-08 at 12:07 -0700, Bill Spitzak wrote: > >> I think in the end Wayland is going to have to have arbitrary affine > >> transforms in the api, and it might make sense to decide a standard for

Re: [PATCH 2/2] protocol: Add buffer_scale to wl_surface and wl_output

2013-05-13 Thread Bill Spitzak
Alexander Larsson wrote: On ons, 2013-05-08 at 12:07 -0700, Bill Spitzak wrote: Output scaling should be merged with the existing "buffer_transform" (the 8-value enumeration describing 90 degree rotations/reflections). In effect they are parts of the same thing, yeah. I don't know if ABI comp

Re: [PATCH 2/2] protocol: Add buffer_scale to wl_surface and wl_output

2013-05-13 Thread Alexander Larsson
On ons, 2013-05-08 at 12:07 -0700, Bill Spitzak wrote: > Output scaling should be merged with the existing "buffer_transform" > (the 8-value enumeration describing 90 degree rotations/reflections). In effect they are parts of the same thing, yeah. I don't know if ABI compat allows us to just chan

Re: [PATCH 2/2] protocol: Add buffer_scale to wl_surface and wl_output

2013-05-08 Thread Bill Spitzak
Output scaling should be merged with the existing "buffer_transform" (the 8-value enumeration describing 90 degree rotations/reflections). I think in the end Wayland is going to have to have arbitrary affine transforms in the api, and it might make sense to decide a standard for these now, so

[PATCH 2/2] protocol: Add buffer_scale to wl_surface and wl_output

2013-05-08 Thread alexl
From: Alexander Larsson This adds wl_surface_set_buffer_scale() to set the buffer scale of a surface. It is similar to set_buffer_transform in that it says that the buffer is stored in a way that has been transformed (in this case scaled). This means that if an output is naturally scaled (i.e. h