mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 17:10:11 +01:00
i965/skl: Report more accurate number of samples for format
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
e7026ac486
commit
cec8eff28e
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue