From 3afabfb929cf24a783c10c99bf0d86245e70a94a Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Tue, 13 Sep 2011 23:10:35 +0200 Subject: nvc0: hook up to new shader code generator Also includes loading of shared shader library code (used for f64 and integer division) and setting up the immediate array buffer which is appended to the code. --- src/gallium/drivers/nv50/nv50_program.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/gallium/drivers/nv50/nv50_program.c') diff --git a/src/gallium/drivers/nv50/nv50_program.c b/src/gallium/drivers/nv50/nv50_program.c index 4def93d6b84..b61400bf81e 100644 --- a/src/gallium/drivers/nv50/nv50_program.c +++ b/src/gallium/drivers/nv50/nv50_program.c @@ -29,6 +29,8 @@ #include "tgsi/tgsi_util.h" #include "tgsi/tgsi_dump.h" +#include "codegen/nv50_ir_driver.h" + static INLINE unsigned bitcount4(const uint32_t val) { @@ -625,6 +627,17 @@ nv50_prog_scan(struct nv50_translation_info *ti) return ret; } +/* Temporary, need a reference to nv50_ir_generate_code in libnv50 or + * it "gets disappeared" and cannot be used in libnvc0 ... + */ +boolean +nv50_program_translate_new(struct nv50_program *p) +{ + struct nv50_ir_prog_info info; + + return nv50_ir_generate_code(&info); +} + boolean nv50_program_translate(struct nv50_program *p) { -- cgit v1.2.3