projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7026ac
)
i965/skl: Report more accurate number of samples for format
author
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 30 Dec 2014 23:27:32 +0000
(15:27 -0800)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 8 Jan 2015 05:51:35 +0000
(21:51 -0800)
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_context.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_context.c
b/src/mesa/drivers/dri/i965/brw_context.c
index 860ee22d6744af4be7ae35e5d37ed5c818cf496b..e8ecbfe80d963f4d189e83d251850cba1f1210e2 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_context.c
+++ b/
src/mesa/drivers/dri/i965/brw_context.c
@@
-81,6
+81,7
@@
brw_query_samples_for_format(struct gl_context *ctx, GLenum target,
(void) target;
switch (brw->gen) {
+ case 9:
case 8:
samples[0] = 8;
samples[1] = 4;
@@
-97,6
+98,7
@@
brw_query_samples_for_format(struct gl_context *ctx, GLenum target,
return 1;
default:
+ assert(brw->gen < 6);
samples[0] = 1;
return 1;
}