[RFC PATCH] vmwgfx: Fix assignment in vmw_framebuffer_create_handle

2012-01-27 Thread Ryan Mallon
The assignment of handle in vmw_framebuffer_create_handle doesn't actually do anything useful and is incorrectly assigning an integer value to a pointer argument. It appears that this is a typo and should be dereferencing handle rather than assigning to it directly. Signed-off-by: Ryan Mallon ---

[RFC PATCH] vmwgfx: Fix assignment in vmw_framebuffer_create_handle

2012-01-27 Thread Thomas Hellstrom
On 01/27/2012 07:25 AM, Ryan Mallon wrote: > The assignment of handle in vmw_framebuffer_create_handle doesn't > actually do anything useful and is incorrectly assigning an integer > value to a pointer argument. It appears that this is a typo and should > be dereferencing handle rather than assigni

[RFC PATCH] vmwgfx: Fix assignment in vmw_framebuffer_create_handle

2012-01-27 Thread Thomas Hellstrom
On 01/27/2012 03:41 PM, Jakob Bornecrantz wrote: > - Original Message - >> On 01/27/2012 03:24 PM, Jakob Bornecrantz wrote: >>> I was asking around and this seems to only be used by X when it >>> starts and we want to preserve the contents of the screen. That >>> feature is implemented by t

[RFC PATCH] vmwgfx: Fix assignment in vmw_framebuffer_create_handle

2012-01-27 Thread Thomas Hellstrom
On 01/27/2012 03:24 PM, Jakob Bornecrantz wrote: > I was asking around and this seems to only be used by X when it > starts and we want to preserve the contents of the screen. That > feature is implemented by the X driver. So we need to figure how we > want to solve it. > > Either way this fix shou

[RFC PATCH] vmwgfx: Fix assignment in vmw_framebuffer_create_handle

2012-01-27 Thread Thomas Hellstrom
Ryan, Thanks for pointing this out. Unfortunately there seems to be two bugs here, the one you pointed out and the fact that we set the handle to zero, when it probably should be set to struct vmw_framebuffer::user_handle. Jakob, can you comment on this? /Thomas On 01/27/2012 07:25 AM, Ryan M

Re: [RFC PATCH] vmwgfx: Fix assignment in vmw_framebuffer_create_handle

2012-01-27 Thread Thomas Hellstrom
On 01/27/2012 07:25 AM, Ryan Mallon wrote: The assignment of handle in vmw_framebuffer_create_handle doesn't actually do anything useful and is incorrectly assigning an integer value to a pointer argument. It appears that this is a typo and should be dereferencing handle rather than assigning to

Re: [RFC PATCH] vmwgfx: Fix assignment in vmw_framebuffer_create_handle

2012-01-27 Thread Jakob Bornecrantz
- Original Message - > On 01/27/2012 03:41 PM, Jakob Bornecrantz wrote: > > - Original Message - > >> On 01/27/2012 03:24 PM, Jakob Bornecrantz wrote: > >>> I was asking around and this seems to only be used by X when it > >>> starts and we want to preserve the contents of the scree

[RFC PATCH] vmwgfx: Fix assignment in vmw_framebuffer_create_handle

2012-01-27 Thread Jakob Bornecrantz
- Original Message - > On 01/27/2012 03:41 PM, Jakob Bornecrantz wrote: > > - Original Message - > >> On 01/27/2012 03:24 PM, Jakob Bornecrantz wrote: > >>> I was asking around and this seems to only be used by X when it > >>> starts and we want to preserve the contents of the scree

Re: [RFC PATCH] vmwgfx: Fix assignment in vmw_framebuffer_create_handle

2012-01-27 Thread Thomas Hellstrom
On 01/27/2012 03:41 PM, Jakob Bornecrantz wrote: - Original Message - On 01/27/2012 03:24 PM, Jakob Bornecrantz wrote: I was asking around and this seems to only be used by X when it starts and we want to preserve the contents of the screen. That feature is implemented by the X driver.

Re: [RFC PATCH] vmwgfx: Fix assignment in vmw_framebuffer_create_handle

2012-01-27 Thread Jakob Bornecrantz
- Original Message - > On 01/27/2012 03:24 PM, Jakob Bornecrantz wrote: > > I was asking around and this seems to only be used by X when it > > starts and we want to preserve the contents of the screen. That > > feature is implemented by the X driver. So we need to figure how we > > want to

[RFC PATCH] vmwgfx: Fix assignment in vmw_framebuffer_create_handle

2012-01-27 Thread Jakob Bornecrantz
- Original Message - > On 01/27/2012 03:24 PM, Jakob Bornecrantz wrote: > > I was asking around and this seems to only be used by X when it > > starts and we want to preserve the contents of the screen. That > > feature is implemented by the X driver. So we need to figure how we > > want to

Re: [RFC PATCH] vmwgfx: Fix assignment in vmw_framebuffer_create_handle

2012-01-27 Thread Jakob Bornecrantz
I was asking around and this seems to only be used by X when it starts and we want to preserve the contents of the screen. That feature is implemented by the X driver. So we need to figure how we want to solve it. Either way this fix should probably go into this RC series, not sure if we need to s

Re: [RFC PATCH] vmwgfx: Fix assignment in vmw_framebuffer_create_handle

2012-01-27 Thread Thomas Hellstrom
On 01/27/2012 03:24 PM, Jakob Bornecrantz wrote: I was asking around and this seems to only be used by X when it starts and we want to preserve the contents of the screen. That feature is implemented by the X driver. So we need to figure how we want to solve it. Either way this fix should probab

[RFC PATCH] vmwgfx: Fix assignment in vmw_framebuffer_create_handle

2012-01-27 Thread Jakob Bornecrantz
I was asking around and this seems to only be used by X when it starts and we want to preserve the contents of the screen. That feature is implemented by the X driver. So we need to figure how we want to solve it. Either way this fix should probably go into this RC series, not sure if we need to s

Re: [RFC PATCH] vmwgfx: Fix assignment in vmw_framebuffer_create_handle

2012-01-27 Thread Thomas Hellstrom
Ryan, Thanks for pointing this out. Unfortunately there seems to be two bugs here, the one you pointed out and the fact that we set the handle to zero, when it probably should be set to struct vmw_framebuffer::user_handle. Jakob, can you comment on this? /Thomas On 01/27/2012 07:25 AM, Ryan

[RFC PATCH] vmwgfx: Fix assignment in vmw_framebuffer_create_handle

2012-01-27 Thread Ryan Mallon
The assignment of handle in vmw_framebuffer_create_handle doesn't actually do anything useful and is incorrectly assigning an integer value to a pointer argument. It appears that this is a typo and should be dereferencing handle rather than assigning to it directly. Signed-off-by: Ryan Mallon