projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fac9f2c
)
radeonsi: enable STD430 packing of UBOs by default
author
Timothy Arceri
<tarceri@itsqueeze.com>
Thu, 14 Sep 2017 22:22:33 +0000
(08:22 +1000)
committer
Timothy Arceri
<tarceri@itsqueeze.com>
Fri, 15 Sep 2017 01:42:55 +0000
(11:42 +1000)
Before this change we were defaulting to STD140 which is slightly
less efficient at packing arrays.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_pipe.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeonsi/si_pipe.c
b/src/gallium/drivers/radeonsi/si_pipe.c
index 262bdc921e548029a4f19b00c5f92b4007ef8477..c47e655804911ca043a9ec830f5e98a0ee8cb717 100644
(file)
--- a/
src/gallium/drivers/radeonsi/si_pipe.c
+++ b/
src/gallium/drivers/radeonsi/si_pipe.c
@@
-486,6
+486,7
@@
static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
case PIPE_CAP_NIR_SAMPLERS_AS_DEREF:
case PIPE_CAP_QUERY_SO_OVERFLOW:
case PIPE_CAP_MEMOBJ:
+ case PIPE_CAP_LOAD_CONSTBUF:
return 1;
case PIPE_CAP_INT64:
@@
-575,7
+576,6
@@
static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
case PIPE_CAP_UMA:
case PIPE_CAP_POLYGON_MODE_FILL_RECTANGLE:
case PIPE_CAP_POST_DEPTH_COVERAGE:
- case PIPE_CAP_LOAD_CONSTBUF:
return 0;
case PIPE_CAP_QUERY_BUFFER_OBJECT: