r300: simplify ntr_try_store_in_tgsi_output
r300 doesn't support anything besides vertex and fragment shaders. Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com> Reviewed-by: Emma Anholt <emma@anholt.net> Reviewed-by: Filip Gawin <filip.gawin@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23437>
This commit is contained in:

committed by
Marge Bot

parent
12e9c20bfb
commit
e363b2a77f
@@ -629,18 +629,6 @@ ntr_try_store_in_tgsi_output_with_use(struct ntr_compile *c,
|
|||||||
{
|
{
|
||||||
*dst = ureg_dst_undef();
|
*dst = ureg_dst_undef();
|
||||||
|
|
||||||
switch (c->s->info.stage) {
|
|
||||||
case MESA_SHADER_FRAGMENT:
|
|
||||||
case MESA_SHADER_VERTEX:
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
/* tgsi_exec (at least) requires that output stores happen per vertex
|
|
||||||
* emitted, you don't get to reuse a previous output value for the next
|
|
||||||
* vertex.
|
|
||||||
*/
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (src->is_if)
|
if (src->is_if)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user