[PATCH libdrm 4.1/17] intel: introduce to_bo_gem() helper

2015-08-31 Thread Chris Wilson
On Mon, Aug 31, 2015 at 08:47:17PM +0100, Emil Velikov wrote: > ...to minimise misuse of bo_gem. > If the variable is declared at the top of the function and then used > for two (or more) different contexts this can cause confusion and errors. > > Just introduce a wrapper, which can be used in a o

[PATCH libdrm 4.1/17] intel: introduce to_bo_gem() helper

2015-08-31 Thread Emil Velikov
...to minimise misuse of bo_gem. If the variable is declared at the top of the function and then used for two (or more) different contexts this can cause confusion and errors. Just introduce a wrapper, which can be used in a once off situations. Suggested-by: Chris Wilson Cc: Chris Wilson Signe