i965: Store the command parser version number in intel_screen
authorNeil Roberts <neil@linux.intel.com>
Fri, 7 Nov 2014 18:20:17 +0000 (18:20 +0000)
committerNeil Roberts <neil@linux.intel.com>
Tue, 12 May 2015 10:20:35 +0000 (11:20 +0100)
commit8a59f2f26fb7bb036ad524cdec668716664d2a82
tree549d11c7333459c7eb35c030736fca51fe7e4020
parent971be2b7c9c4459e383059f02d20a35e469b429e
i965: Store the command parser version number in intel_screen

In order to detect whether the predicate source registers can be used
in a later patch we will need to know the version number for the
command parser. This patch just adds a member to intel_screen and does
an ioctl to get the version.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/intel_screen.c
src/mesa/drivers/dri/i965/intel_screen.h