i965: Refactor fs_generator API
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 14 Nov 2014 00:28:08 +0000 (16:28 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 15 Nov 2014 03:38:03 +0000 (19:38 -0800)
commitf2bb655ac75d04dc033546479aabbbf4112cc54e
treef9c05b55e1b4d2eb937c95fa47b90836311c6c47
parent13849f327cb3e6aa34a8a91fbbc7d68fd010d7ec
i965: Refactor fs_generator API

We split out SIMD8 and SIMD16 generation into seperate calls to
new method generate_code(), which returns the start offset for the
generated code.  A new get_assembly() method returns the generated code.

This avoids asserting MESA_SHADER_FRAGMENT and accessing wm_prog_data
in the generator.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_blorp_blit_eu.cpp
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_generator.cpp