<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/mesa.git/src/glsl/standalone_scaffolding.h, branch baserock/james/test</title>
<subtitle>gitlab.freedesktop.org: mesa/mesa.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/mesa.git/'/>
<entry>
<title>mesa: Silence unused parameter warning in _mesa_clear_shader_program_data</title>
<updated>2014-10-25T02:54:38+00:00</updated>
<author>
<name>Ian Romanick</name>
<email>ian.d.romanick@intel.com</email>
</author>
<published>2014-10-20T21:50:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/mesa.git/commit/?id=9cdf2f78fc123b9bfd2ff23f6d5cd4e834596c2b'/>
<id>9cdf2f78fc123b9bfd2ff23f6d5cd4e834596c2b</id>
<content type='text'>
Just remove the parameter.

Signed-off-by: Ian Romanick &lt;ian.d.romanick@intel.com&gt;
Reviewed-by: Brian Paul &lt;brianp@vmware.com&gt;
Reviewed-by: Matt Turner &lt;mattst88@gmail.com&gt;
Reviewed-by: Kenneth Graunke &lt;kenneth@whitecape.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Just remove the parameter.

Signed-off-by: Ian Romanick &lt;ian.d.romanick@intel.com&gt;
Reviewed-by: Brian Paul &lt;brianp@vmware.com&gt;
Reviewed-by: Matt Turner &lt;mattst88@gmail.com&gt;
Reviewed-by: Kenneth Graunke &lt;kenneth@whitecape.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>linker: Rely on _mesa_clear_shader_program_data to clear link information</title>
<updated>2014-10-25T02:54:38+00:00</updated>
<author>
<name>Ian Romanick</name>
<email>ian.d.romanick@intel.com</email>
</author>
<published>2014-10-20T21:40:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/mesa.git/commit/?id=fefead3b63584603278b3388cc9c426a8a44e92c'/>
<id>fefead3b63584603278b3388cc9c426a8a44e92c</id>
<content type='text'>
_mesa_link_shader_program already calls _mesa_clear_shader_program_data
before calling link_shaders, so this is already done.

Signed-off-by: Ian Romanick &lt;ian.d.romanick@intel.com&gt;
Reviewed-by: Matt Turner &lt;mattst88@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
_mesa_link_shader_program already calls _mesa_clear_shader_program_data
before calling link_shaders, so this is already done.

Signed-off-by: Ian Romanick &lt;ian.d.romanick@intel.com&gt;
Reviewed-by: Matt Turner &lt;mattst88@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mesa/cs: Add a MESA_SHADER_COMPUTE stage and update switch statements.</title>
<updated>2014-02-05T17:00:34+00:00</updated>
<author>
<name>Paul Berry</name>
<email>stereotype441@gmail.com</email>
</author>
<published>2014-01-07T04:06:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/mesa.git/commit/?id=c61ec8d8e34e9bf30b3c4c84afa08f0a5b66b932'/>
<id>c61ec8d8e34e9bf30b3c4c84afa08f0a5b66b932</id>
<content type='text'>
This patch adds MESA_SHADER_COMPUTE to the gl_shader_stage enum.
Also, where it is trivial to do so, it adds a compute shader case to
switch statements that switch based on the type of shader.  This
avoids "unhandled switch case" compiler warnings.

Reviewed-by: Matt Turner &lt;mattst88@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds MESA_SHADER_COMPUTE to the gl_shader_stage enum.
Also, where it is trivial to do so, it adds a compute shader case to
switch statements that switch based on the type of shader.  This
avoids "unhandled switch case" compiler warnings.

Reviewed-by: Matt Turner &lt;mattst88@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mesa: Clean up nomenclature for pipeline stages.</title>
<updated>2014-01-08T15:30:30+00:00</updated>
<author>
<name>Paul Berry</name>
<email>stereotype441@gmail.com</email>
</author>
<published>2014-01-07T18:11:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/mesa.git/commit/?id=665b8d7b6d8eae03c9dc0ef1a744fe59d9cc6cb6'/>
<id>665b8d7b6d8eae03c9dc0ef1a744fe59d9cc6cb6</id>
<content type='text'>
Previously, we had an enum called gl_shader_type which represented
pipeline stages in the order they occur in the pipeline
(i.e. MESA_SHADER_VERTEX=0, MESA_SHADER_GEOMETRY=1, etc), and several
inconsistently named functions for converting between it and other
representations:

- _mesa_shader_type_to_string: gl_shader_type -&gt; string
- _mesa_shader_type_to_index: GLenum (GL_*_SHADER) -&gt; gl_shader_type
- _mesa_program_target_to_index: GLenum (GL_*_PROGRAM) -&gt; gl_shader_type
- _mesa_shader_enum_to_string: GLenum (GL_*_{SHADER,PROGRAM}) -&gt; string

This patch tries to clean things up so that we use more consistent
terminology: the enum is now called gl_shader_stage (to emphasize that
it is in the order of pipeline stages), and the conversion functions are:

- _mesa_shader_stage_to_string: gl_shader_stage -&gt; string
- _mesa_shader_enum_to_shader_stage: GLenum (GL_*_SHADER) -&gt; gl_shader_stage
- _mesa_program_enum_to_shader_stage: GLenum (GL_*_PROGRAM) -&gt; gl_shader_stage
- _mesa_progshader_enum_to_string: GLenum (GL_*_{SHADER,PROGRAM}) -&gt; string

In addition, MESA_SHADER_TYPES has been renamed to MESA_SHADER_STAGES,
for consistency with the new name for the enum.

Reviewed-by: Kenneth Graunke &lt;kenneth@whitecape.org&gt;

v2: Also rename the "target" field of _mesa_glsl_parse_state and the
"target" parameter of _mesa_shader_stage_to_string to "stage".

Reviewed-by: Brian Paul &lt;brianp@vmware.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, we had an enum called gl_shader_type which represented
pipeline stages in the order they occur in the pipeline
(i.e. MESA_SHADER_VERTEX=0, MESA_SHADER_GEOMETRY=1, etc), and several
inconsistently named functions for converting between it and other
representations:

- _mesa_shader_type_to_string: gl_shader_type -&gt; string
- _mesa_shader_type_to_index: GLenum (GL_*_SHADER) -&gt; gl_shader_type
- _mesa_program_target_to_index: GLenum (GL_*_PROGRAM) -&gt; gl_shader_type
- _mesa_shader_enum_to_string: GLenum (GL_*_{SHADER,PROGRAM}) -&gt; string

This patch tries to clean things up so that we use more consistent
terminology: the enum is now called gl_shader_stage (to emphasize that
it is in the order of pipeline stages), and the conversion functions are:

- _mesa_shader_stage_to_string: gl_shader_stage -&gt; string
- _mesa_shader_enum_to_shader_stage: GLenum (GL_*_SHADER) -&gt; gl_shader_stage
- _mesa_program_enum_to_shader_stage: GLenum (GL_*_PROGRAM) -&gt; gl_shader_stage
- _mesa_progshader_enum_to_string: GLenum (GL_*_{SHADER,PROGRAM}) -&gt; string

In addition, MESA_SHADER_TYPES has been renamed to MESA_SHADER_STAGES,
for consistency with the new name for the enum.

Reviewed-by: Kenneth Graunke &lt;kenneth@whitecape.org&gt;

v2: Also rename the "target" field of _mesa_glsl_parse_state and the
"target" parameter of _mesa_shader_stage_to_string to "stage".

Reviewed-by: Brian Paul &lt;brianp@vmware.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>glsl: Don't return bad values from _mesa_shader_type_to_index.</title>
<updated>2013-12-17T20:31:35+00:00</updated>
<author>
<name>Paul Berry</name>
<email>stereotype441@gmail.com</email>
</author>
<published>2013-12-16T20:58:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/mesa.git/commit/?id=d9b55244fd56b5971b40fdadb262a25840197096'/>
<id>d9b55244fd56b5971b40fdadb262a25840197096</id>
<content type='text'>
This will avoid compiler warnings in the patch that follows.  There
should be no user-visible effect because the change only affects the
behaviour when an invalid enum is passed to
_mesa_shader_type_to_index(), and that can only happen if there is a
bug elsewhere in Mesa.

Reviewed-by: Brian Paul &lt;brianp@vmware.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This will avoid compiler warnings in the patch that follows.  There
should be no user-visible effect because the change only affects the
behaviour when an invalid enum is passed to
_mesa_shader_type_to_index(), and that can only happen if there is a
bug elsewhere in Mesa.

Reviewed-by: Brian Paul &lt;brianp@vmware.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>glsl: Copy _mesa_shader_type_to_index() to standalone scaffolding.</title>
<updated>2013-05-12T16:36:18+00:00</updated>
<author>
<name>Kenneth Graunke</name>
<email>kenneth@whitecape.org</email>
</author>
<published>2013-04-18T00:30:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/mesa.git/commit/?id=1c95cea40b518166bfa8d6925d58adf4e73d74fa'/>
<id>1c95cea40b518166bfa8d6925d58adf4e73d74fa</id>
<content type='text'>
We can't include shaderobj.h from the standalone utilities, so we
unfortunately have to copy this function.

Signed-off-by: Kenneth Graunke &lt;kenneth@whitecape.org&gt;
Reviewed-by: Ian Romanick &lt;ian.d.romanick@intel.com&gt;
Reviewed-by: Eric Anholt &lt;eric@anholt.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We can't include shaderobj.h from the standalone utilities, so we
unfortunately have to copy this function.

Signed-off-by: Kenneth Graunke &lt;kenneth@whitecape.org&gt;
Reviewed-by: Ian Romanick &lt;ian.d.romanick@intel.com&gt;
Reviewed-by: Eric Anholt &lt;eric@anholt.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mesa: Report ARB_debug_output for both shader errors and warnings.</title>
<updated>2013-03-05T22:25:00+00:00</updated>
<author>
<name>Eric Anholt</name>
<email>eric@anholt.net</email>
</author>
<published>2013-02-22T23:57:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/mesa.git/commit/?id=c72cf538173329f639c2b64ef091dbd4a71e0bf6'/>
<id>c72cf538173329f639c2b64ef091dbd4a71e0bf6</id>
<content type='text'>
This ends up reusing the dynamic ID support, so a silly enum gets to go
away.  We don't assign good IDs to different messages yet, but at least
that's tractable now.

Reviewed-by: Jordan Justen &lt;jordan.l.justen@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This ends up reusing the dynamic ID support, so a silly enum gets to go
away.  We don't assign good IDs to different messages yet, but at least
that's tractable now.

Reviewed-by: Jordan Justen &lt;jordan.l.justen@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>glsl/standalone_scaffolding: Add stub for _mesa_warning()</title>
<updated>2013-01-25T05:11:41+00:00</updated>
<author>
<name>Chad Versace</name>
<email>chad.versace@linux.intel.com</email>
</author>
<published>2013-01-16T20:56:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/mesa.git/commit/?id=1fafd008392d5240dc36d0c72978cef62e21b4b1'/>
<id>1fafd008392d5240dc36d0c72978cef62e21b4b1</id>
<content type='text'>
A subsequent patch will add mesa/main/imports.c as a dependency to the
compiler, which in turn requires that _mesa_warning() be defined.

The real definition of _mesa_warning() is in mesa/main/errors.c, but to
pull that file into the standalone scaffolding would require transitively
pulling in the dispatch tables.

Reviewed-by: Ian Romanick &lt;ian.d.romanick@intel.com&gt;
Acked-by: Paul Berry &lt;stereotype441@gmail.com&gt;
Signed-off-by: Chad Versace &lt;chad.versace@linux.intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A subsequent patch will add mesa/main/imports.c as a dependency to the
compiler, which in turn requires that _mesa_warning() be defined.

The real definition of _mesa_warning() is in mesa/main/errors.c, but to
pull that file into the standalone scaffolding would require transitively
pulling in the dispatch tables.

Reviewed-by: Ian Romanick &lt;ian.d.romanick@intel.com&gt;
Acked-by: Paul Berry &lt;stereotype441@gmail.com&gt;
Signed-off-by: Chad Versace &lt;chad.versace@linux.intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>glsl: report errors via GL_ARB_debug_output</title>
<updated>2012-05-02T16:12:23+00:00</updated>
<author>
<name>Dylan Noblesmith</name>
<email>nobled@dreamwidth.org</email>
</author>
<published>2012-04-02T16:26:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/mesa.git/commit/?id=d5a10dba6464d6cc40b3abcd6b704fb087e1056c'/>
<id>d5a10dba6464d6cc40b3abcd6b704fb087e1056c</id>
<content type='text'>
Reviewed-by: Brian Paul &lt;brianp@vmware.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed-by: Brian Paul &lt;brianp@vmware.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>glsl: Move functions into standalone_scaffolding.cpp for later reuse.</title>
<updated>2011-07-22T16:45:11+00:00</updated>
<author>
<name>Paul Berry</name>
<email>stereotype441@gmail.com</email>
</author>
<published>2011-07-07T21:01:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/mesa.git/commit/?id=f129f618fe8a5397774484f1b7afb42d4be809a0'/>
<id>f129f618fe8a5397774484f1b7afb42d4be809a0</id>
<content type='text'>
This patch moves the following functions from main.cpp (the main cpp
file for the standalone executable that is used to create the built-in
functions) to standalone_scaffolding.cpp, so that they can be re-used
in other standalone executables:

- initialize_context()*
- _mesa_new_shader()
- _mesa_reference_shader()

*initialize_context contained some code that was specific to main.cpp,
so it was split into two functions: initialize_context() (which
remains in main.cpp), and initialize_context_from_defaults() (which is
in standalone_scaffolding.cpp).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch moves the following functions from main.cpp (the main cpp
file for the standalone executable that is used to create the built-in
functions) to standalone_scaffolding.cpp, so that they can be re-used
in other standalone executables:

- initialize_context()*
- _mesa_new_shader()
- _mesa_reference_shader()

*initialize_context contained some code that was specific to main.cpp,
so it was split into two functions: initialize_context() (which
remains in main.cpp), and initialize_context_from_defaults() (which is
in standalone_scaffolding.cpp).
</pre>
</div>
</content>
</entry>
</feed>
