https://bugs.freedesktop.org/show_bug.cgi?id=96765

--- Comment #1 from Ilia Mirkin <imir...@alum.mit.edu> ---
Are you sure that's correct? It's unclear from the spec that you should be able
to set arbitrary array indices' frag data locations/index values. Your test
case works with:

diff --git a/blend_func_extended_array/Main.cpp
b/blend_func_extended_array/Main.cpp
index 5718d0f..31217ee 100644
--- a/blend_func_extended_array/Main.cpp
+++ b/blend_func_extended_array/Main.cpp
@@ -29,8 +29,8 @@ class BlendFuncExtendedArray : public GLFWApp {
                    })";

             mProgram = CompileProgramStuffBeforeLink(vs, fs, [](GLuint
program){
-                glBindFragDataLocationIndexed(program, 0, 0, "FragData[0]");
-                glBindFragDataLocationIndexed(program, 0, 1,
"SecondaryFragData[0]");
+                glBindFragDataLocationIndexed(program, 0, 0, "FragData");
+                glBindFragDataLocationIndexed(program, 0, 1,
"SecondaryFragData");
             });
             std::cout << "Location of FragData, should be 0: " <<
glGetFragDataLocation(mProgram, "FragData[0]") << std::endl;
             std::cout << "Index of FragData, should be 0: " <<
glGetFragDataIndex(mProgram, "FragData[0]") << std::endl;


Note that it's still arrays in the glsl.

Does this work with other drivers? If so, which ones?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to