i915: Fix up intelInitScreen2 for DRI3
authorAdel Gadllah <adel.gadllah@gmail.com>
Thu, 3 Jul 2014 20:13:53 +0000 (22:13 +0200)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 17 Jul 2014 21:42:35 +0000 (14:42 -0700)
commitb656e3c603da46fe0acd9905dc039c93d76f0b06
treec0971adc95d8708d56a157d921930d289eaebda3
parent4ceb612a10d7776631b196ae13be9c5588154468
i915: Fix up intelInitScreen2 for DRI3

Commit 442442026eb updated both i915 and i965 for DRI3 support,
but one check in intelInitScreen2 was missed for i915 causing crashes
when trying to use i915 with DRI3.

So fix that up.

Reported-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
References: https://bugzilla.redhat.com/show_bug.cgi?id=1115323
References: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=754297
Tested-by: FrantiĊĦek Zatloukal <Zatloukal.Frantisek@gmail.com>
Tested-by: Dirk Griesbach <spamthis@freenet.de>
Signed-off-by: Adel Gadllah <adel.gadllah@gmail.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: "10.2" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i915/intel_screen.c