st/nine: Always use user constant buffers

We had several reports of users hitting bugs
with the other path to upload constants,
and switching to the user constant buffer
path solves the bugs.

User constant buffers are expected to be slower
for Nvidia cards, so ideally this patch should be
reverted when the path is fixed.

Reviewed-by: Axel Davy <axel.davy@ens.fr>
Signed-off-by: Krzysztof Sobiecki <sobkas@gmail.com>
This commit is contained in:
Krzysztof Sobiecki
2015-08-20 23:19:30 +02:00
committed by Axel Davy
parent f57e9c77e3
commit 20746c2e7d
+3 -1
View File
@@ -307,10 +307,12 @@ NineDevice9_ctor( struct NineDevice9 *This,
if (strstr(pScreen->get_name(pScreen), "AMD") ||
strstr(pScreen->get_name(pScreen), "ATI")) {
This->prefer_user_constbuf = TRUE;
This->driver_bugs.buggy_barycentrics = TRUE;
}
/* Disable NV path for now, needs some fixes */
This->prefer_user_constbuf = TRUE;
tmpl.target = PIPE_BUFFER;
tmpl.format = PIPE_FORMAT_R8_UNORM;
tmpl.height0 = 1;