projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed7cb28
)
r300g: return shader caps from Draw for SWTCL vertex shaders
author
Marek Olšák
<maraeo@gmail.com>
Sun, 14 Nov 2010 21:32:46 +0000
(22:32 +0100)
committer
Marek Olšák
<maraeo@gmail.com>
Sun, 14 Nov 2010 22:04:18 +0000
(23:04 +0100)
src/gallium/drivers/r300/r300_screen.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r300/r300_screen.c
b/src/gallium/drivers/r300/r300_screen.c
index 37563b5a940bf9824e16de2ce29d7588393ea865..fd2f33814d152b3c699b90fab16aa1a60a3db35f 100644
(file)
--- a/
src/gallium/drivers/r300/r300_screen.c
+++ b/
src/gallium/drivers/r300/r300_screen.c
@@
-32,6
+32,8
@@
#include "r300_winsys.h"
#include "r300_public.h"
+#include "draw/draw_context.h"
+
/* Return the identifier behind whom the brave coders responsible for this
* amalgamation of code, sweat, and duct tape, routinely obscure their names.
*
@@
-215,6
+217,10
@@
static int r300_get_shader_param(struct pipe_screen *pscreen, unsigned shader, e
}
break;
case PIPE_SHADER_VERTEX:
+ if (!r300screen->caps.has_tcl) {
+ return draw_get_shader_param(shader, param);
+ }
+
switch (param)
{
case PIPE_SHADER_CAP_MAX_INSTRUCTIONS: