mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
i915g: Remove nr_cbufs loop.
This hardware definitely only does one cbuf. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11512>
This commit is contained in:
parent
c6da3827d0
commit
51458ba9e9
1 changed files with 2 additions and 5 deletions
|
|
@ -726,15 +726,12 @@ static void i915_set_framebuffer_state(struct pipe_context *pipe,
|
|||
const struct pipe_framebuffer_state *fb)
|
||||
{
|
||||
struct i915_context *i915 = i915_context(pipe);
|
||||
int i;
|
||||
|
||||
i915->framebuffer.width = fb->width;
|
||||
i915->framebuffer.height = fb->height;
|
||||
i915->framebuffer.nr_cbufs = fb->nr_cbufs;
|
||||
for (i = 0; i < PIPE_MAX_COLOR_BUFS; i++) {
|
||||
pipe_surface_reference(&i915->framebuffer.cbufs[i],
|
||||
i < fb->nr_cbufs ? fb->cbufs[i] : NULL);
|
||||
}
|
||||
pipe_surface_reference(&i915->framebuffer.cbufs[0],
|
||||
fb->nr_cbufs ? fb->cbufs[0] : NULL);
|
||||
pipe_surface_reference(&i915->framebuffer.zsbuf, fb->zsbuf);
|
||||
|
||||
i915->dirty |= I915_NEW_FRAMEBUFFER;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue