[1/2] d3dcompiler: Don't store instruction length in DEF opcode in PS 1.x.

Matteo Bruni matteo.mystral at gmail.com
Thu Oct 14 08:27:24 CDT 2010


These two patches fix http://bugs.winehq.org/show_bug.cgi?id=24726
-------------- next part --------------
From 35b855d70176a541d05a2b6a4b053037260f592a Mon Sep 17 00:00:00 2001
From: Matteo Bruni <mbruni at codeweavers.com>
Date: Wed, 13 Oct 2010 22:19:03 +0200
Subject: d3dcompiler: Don't store instruction length in DEF opcode in PS 1.x.

---
 dlls/d3dcompiler_43/bytecodewriter.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/d3dcompiler_43/bytecodewriter.c b/dlls/d3dcompiler_43/bytecodewriter.c
index 5b22580..5ff1e2f 100644
--- a/dlls/d3dcompiler_43/bytecodewriter.c
+++ b/dlls/d3dcompiler_43/bytecodewriter.c
@@ -598,7 +598,7 @@ static void ps_1_x_header(struct bc_writer *This, const struct bwriter_shader *s
 
     /* Declare the shader type and version */
     put_dword(buffer, This->version);
-    write_constF(shader, buffer, TRUE);
+    write_constF(shader, buffer, FALSE);
 }
 
 static void ps_1_4_header(struct bc_writer *This, const struct bwriter_shader *shader, struct bytecode_buffer *buffer) {
@@ -619,7 +619,7 @@ static void ps_1_4_header(struct bc_writer *This, const struct bwriter_shader *s
 
     /* Declare the shader type and version */
     put_dword(buffer, This->version);
-    write_constF(shader, buffer, TRUE);
+    write_constF(shader, buffer, FALSE);
 }
 
 static void end(struct bc_writer *This, const struct bwriter_shader *shader, struct bytecode_buffer *buffer) {
-- 
1.7.2.2


More information about the wine-patches mailing list