i965: check pointer before dereferencing it
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 13 Jul 2017 15:11:40 +0000 (16:11 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 13 Jul 2017 21:50:35 +0000 (22:50 +0100)
commitfd8e8fdbfeb9594946727909a4fb3956733fc3db
tree09aa0552d5388fb248f0c9fc29c33d07f3dd32f2
parentb02d136b5e14f94e5f3ab8489f0fbfaa88e76820
i965: check pointer before dereferencing it

Check that irb isn't NULL before accessing irb->Base.Base.NumSamples.

CID: 1026046
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/intel_tex_copy.c