Skip to content

WIP: nir: bump max number of components to 32

Lionel Landwerlin requested to merge llandwerlin/mesa:review/nir-vec32 into main

Useful for Intel to load bigger chunks on uniform data in a single instruction.

Anv size before :

$ size build/src/intel/vulkan/libvulkan_intel.so
   text	   data	    bss	    dec	    hex	filename
34669687	 255632	  28040	34953359	215588f	build/src/intel/vulkan/libvulkan_intel.so

Anv size after :

$ size build/src/intel/vulkan/libvulkan_intel.so
   text	   data	    bss	    dec	    hex	filename
34843052	 269216	  28040	35140308	21832d4	build/src/intel/vulkan/libvulkan_intel.so

shader-db run on Iris before :

real	0m22.481s
user	6m41.784s
sys	0m2.837s

shader-db run on Iris after :

real	0m24.433s
user	7m18.334s
sys	0m3.026s

Running fossilize replay with --log-memory on i7-12700K (20 threads) On Rise Of The Tomb Raider before :

VmPeak:	 1768148 kB
VmSize:	 1634756 kB
VmLck:	       0 kB
VmPin:	       0 kB
VmHWM:	  392644 kB
VmRSS:	  323024 kB
RssAnon:	  305104 kB
RssFile:	   17440 kB
RssShmem:	     480 kB
VmData:	  442048 kB
VmStk:	     184 kB
VmExe:	    2660 kB
VmLib:	   29788 kB
VmPTE:	     964 kB
VmSwap:	       0 kB
HugetlbPages:	       0 kB

after :

VmPeak:	 1831580 kB
VmSize:	 1634912 kB
VmLck:	       0 kB
VmPin:	       0 kB
VmHWM:	  411228 kB
VmRSS:	  315908 kB
RssAnon:	  297988 kB
RssFile:	   17440 kB
RssShmem:	     480 kB
VmData:	  471588 kB
VmStk:	     188 kB
VmExe:	    2660 kB
VmLib:	   29844 kB
VmPTE:	    1036 kB
VmSwap:	       0 kB
HugetlbPages:	       0 kB

Same with Shadow Of The Tomb Raider before :

VmPeak:	 1837796 kB
VmSize:	 1640380 kB
VmLck:	       0 kB
VmPin:	       0 kB
VmHWM:	  667340 kB
VmRSS:	  593228 kB
RssAnon:	  575308 kB
RssFile:	   17440 kB
RssShmem:	     480 kB
VmData:	  755776 kB
VmStk:	     184 kB
VmExe:	    2660 kB
VmLib:	   29788 kB
VmPTE:	    1580 kB
VmSwap:	       0 kB
HugetlbPages:	       0 kB

after:

VmPeak:	 1837836 kB
VmSize:	 1640540 kB
VmLck:	       0 kB
VmPin:	       0 kB
VmHWM:	  686536 kB
VmRSS:	  650544 kB
RssAnon:	  633104 kB
RssFile:	   16960 kB
RssShmem:	     480 kB
VmData:	  790044 kB
VmStk:	     188 kB
VmExe:	    2660 kB
VmLib:	   29844 kB
VmPTE:	    1644 kB
VmSwap:	       0 kB
HugetlbPages:	       0 kB

Data points mentioned in !21853 (comment 1853576)

Edited by Lionel Landwerlin

Merge request reports

Loading