mesa/src/intel/blorp
Chris Wilson 6c530ad116 i965: Reduce passing 2x32b of reloc_domains to 2 bits
The kernel only cares about whether the object is to be written to or
not, only reduces (reloc.read_domains, reloc.write_domain) down to just
!!reloc.write_domain. When we use NO_RELOC, the kernel doesn't even read
those relocs and instead userspace has to pass that information in the
execobject.flags. We can simplify our reloc api by also removing the
unused read/write domains and only pass the resultant flags.

The caveat to the above are when we need to make the kernel aware that
certain objects need to take into account different work arounds.
Previously, this was done using the magic (INSTRUCTION, INSTRUCTION)
reloc domains. NO_RELOC requires this to be passed in the execobject
flags as well, and now we push that up the callstack.

The API is more compact, more expressive of what happens underneath, but
unfortunately requires more knowledge of the system at the point of use.
Conversely it also means that knowledge is specific and not generally
applied and so not overused.

   text	   data	    bss	    dec	    hex	filename
8502991	 356912	 424944	9284847	 8dacef	lib/i965_dri.so (before)
8500455	 356912	 424944	9282311	 8da307	lib/i965_dri.so (after)

v2: (by Ken) Rebase.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2017-08-04 10:26:37 -07:00
..
blorp.c intel/blorp: Assert levels and layers are in range 2017-06-26 11:09:12 -07:00
blorp.h i965: Reduce passing 2x32b of reloc_domains to 2 bits 2017-08-04 10:26:37 -07:00
blorp_blit.c intel/isl: Add a helper to get a subimage surface 2017-07-22 21:41:12 -07:00
blorp_clear.c intel/blorp: Add a partial resolve pass for MCS 2017-07-22 20:59:22 -07:00
blorp_genX_exec.h intel/blorp: Allow BLORP calls to be predicated 2017-07-22 20:12:10 -07:00
blorp_nir_builder.h intel/blorp: Add a partial resolve pass for MCS 2017-07-22 20:59:22 -07:00
blorp_priv.h intel/blorp: Add a partial resolve pass for MCS 2017-07-22 20:59:22 -07:00
TODO intel/blorp: Add a TODO file 2016-09-12 10:14:49 -07:00