i965: Pass fb into emit_null_surface instead of dimensions.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 17 Aug 2017 08:17:02 +0000 (01:17 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 23 Aug 2017 18:55:17 +0000 (11:55 -0700)
commit7af023edc0770412abed10e7cecaa6d2d4399a00
treef2ff83d47a99bf3f090c63c8d8d39eb8f8f85650
parente2dab867ac8de5290da499a1fd79331c46d0ccb4
i965: Pass fb into emit_null_surface instead of dimensions.

We either want the framebuffer dimensions or 1x1x1.  Passing fb and
falling back to 1x1x1 lets us shorten some calls.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c