winsys/drm: Fix out of scope variable usage
authorDeepak Rawat <drawat@vmware.com>
Wed, 5 Jun 2019 17:46:47 +0000 (10:46 -0700)
committerCharmaine Lee <charmainel@vmware.com>
Mon, 3 Jun 2019 05:31:07 +0000 (22:31 -0700)
commit828e1b0b4c5eef96a7f9a64010532263430e1f13
tree70ee09186f8023d3e0b94818738161216e47c618
parentc51312bc94046846d691810ef53551e9d10aa904
winsys/drm: Fix out of scope variable usage

In this particular instance, struct member were used outside of the
block where it was defined. Fix this by moving the definition outside of
block.

Signed-off-by: Deepak Rawat <drawat@vmware.com>
Fixes: 569f83898768 ("winsys/svga: Add support for new surface ioctl, multisample pattern")
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/winsys/svga/drm/vmw_screen_ioctl.c