i965: Clean up intel_batchbuffer_init().
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 11 Aug 2017 03:47:53 +0000 (20:47 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 12 Aug 2017 08:41:24 +0000 (01:41 -0700)
commitda0840246fd91134a61e35f1bd987d77111aed26
tree76c40a63ef0580b959b63ebdb3cb325e4f551172
parentb420680edec636127360c00442f20a8afd6377cc
i965: Clean up intel_batchbuffer_init().

Passing screen lets us get the kernel features, devinfo, and bufmgr,
without needing container_of.

This use of container_of could cause crashes due to issues with the
"sample" macro parameter.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102062
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/intel_batchbuffer.c
src/mesa/drivers/dri/i965/intel_batchbuffer.h