i965: Fix FS unit tests
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 15 May 2015 18:55:46 +0000 (11:55 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 15 May 2015 19:31:15 +0000 (12:31 -0700)
Commit 3687d75 changed the fs_visitor constructors, but it didn't update
all the users.  As a result, 'make check' fails.

I added the explicit cast to the gl_program* parameter to make it more
clear which NULL was which.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@Whitecape.org>
src/mesa/drivers/dri/i965/test_fs_cmod_propagation.cpp
src/mesa/drivers/dri/i965/test_fs_saturate_propagation.cpp

index 206a76e92428feb50b66ea3b7f6973e945ac8cf9..0e48e82471115667815c93330bf7b15a53e30be2 100644 (file)
@@ -45,7 +45,8 @@ public:
    cmod_propagation_fs_visitor(struct brw_context *brw,
                                struct brw_wm_prog_data *prog_data,
                                struct gl_shader_program *shader_prog)
-      : fs_visitor(brw, NULL, NULL, prog_data, shader_prog, NULL, 8) {}
+      : fs_visitor(brw, NULL, MESA_SHADER_FRAGMENT, NULL, &prog_data->base,
+                   shader_prog, (struct gl_program *) NULL, 8) {}
 };
 
 
index 4c91af3ea8d7dce93e5bda8db8a793d6d0b90a5a..8b1fab0660710f38eb3c13c73c5139fa41017692 100644 (file)
@@ -45,7 +45,8 @@ public:
    saturate_propagation_fs_visitor(struct brw_context *brw,
                                    struct brw_wm_prog_data *prog_data,
                                    struct gl_shader_program *shader_prog)
-      : fs_visitor(brw, NULL, NULL, prog_data, shader_prog, NULL, 8) {}
+      : fs_visitor(brw, NULL, MESA_SHADER_FRAGMENT, NULL, &prog_data->base,
+                   shader_prog, (struct gl_program *) NULL, 8) {}
 };