i965/fs: Set the header_size on LOAD_PAYLOAD in opt_sampler_eot
authorNeil Roberts <neil@linux.intel.com>
Thu, 7 May 2015 17:55:55 +0000 (18:55 +0100)
committerNeil Roberts <neil@linux.intel.com>
Fri, 8 May 2015 11:40:14 +0000 (12:40 +0100)
Commit 94ee908448 added a header size parameter to the function to
create the LOAD_PAYLOAD instruction. However this broke
opt_sampler_eot which manually constructs the instruction and so
wasn't setting the header_size. This ends up making the parameters for
the send message all have the wrong location and it all falls apart.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp

index 3bf58668601b62a9a0c3b3d6bfa82093e71e8508..02a1ad5a167342cf66015c9b52dba92f6cc139e6 100644 (file)
@@ -2701,6 +2701,7 @@ fs_visitor::opt_sampler_eot()
                                                     load_payload->sources + 1);
 
    new_load_payload->regs_written = load_payload->regs_written + 1;
+   new_load_payload->header_size = 1;
    tex_inst->mlen++;
    tex_inst->header_size = 1;
    tex_inst->insert_before(cfg->blocks[cfg->num_blocks - 1], new_load_payload);