i965: map_gtt: check mapping address before adding offset
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 13 Jul 2017 15:08:34 +0000 (16:08 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 13 Jul 2017 21:50:32 +0000 (22:50 +0100)
commitb02d136b5e14f94e5f3ab8489f0fbfaa88e76820
tree7cc20c22e137dbf5e94821d8d75cb9fcecaf0317
parenta25a53345859c3c560b923de3359c245db81c5e6
i965: map_gtt: check mapping address before adding offset

The NULL check might fail if offset isn't 0.

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