mt->format is of type mesa_format, and therefore can't be
used with _mesa_base_fbo_format which requires a GLenum input.
On gen8, this fixes various piglit fbo-depthstencil tests with
samples > 1.
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: "10.2" <mesa-stable@lists.freedesktop.org>
#include "main/blit.h"
#include "main/buffers.h"
+#include "main/enums.h"
#include "main/fbobject.h"
#include "drivers/common/meta.h"
irb = intel_renderbuffer(rb);
rb->Format = mt->format;
- rb->_BaseFormat = _mesa_base_fbo_format(ctx, mt->format);
+ rb->_BaseFormat = _mesa_get_format_base_format(mt->format);
rb->NumSamples = mt->num_samples;
rb->Width = mt->logical_width0;