nvc0: mark shader header if fp64 is used
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 18 Jul 2014 02:31:11 +0000 (22:31 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 24 Jul 2014 12:26:41 +0000 (08:26 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_program.c

index dbb7c5503302fb5d299751dd2edebd8f760bb853..21be8b7240ea47d21c5e33036286dd3d34ac135d 100644 (file)
@@ -643,6 +643,8 @@ nvc0_program_translate(struct nvc0_program *prog, uint16_t chipset)
    */
    if (info->io.globalAccess)
       prog->hdr[0] |= 1 << 16;
+   if (info->io.fp64)
+      prog->hdr[0] |= 1 << 27;
 
    if (prog->pipe.stream_output.num_outputs)
       prog->tfb = nvc0_program_create_tfb_state(info,