Build mesa 8840 completed
Commit bd6303a440 by Jason Ekstrand on 8/22/2018 1:43 AM:
anv: Clamp scissors to the framebuffer boundary\n\nThe Vulkan 1.1.81 spec says:\n\n "It is legal for offset.x + extent.width or offset.y + extent.height\n to exceed the dimensions of the framebuffer - the scissor test still\n applies as defined above. Rasterization does not produce fragments\n outside of the framebuffer, so such fragments never have the scissor\n test performed on them."\n\nElsewhere, the Vulkan 1.1.81 spec says:\n\n "The application must ensure (using scissor if necessary) that all\n rendering is contained within the render area, otherwise the pixels\n outside of the render area become undefined and shader side effects\n may occur for fragments outside the render area. The render area\n must be contained within the framebuffer dimensions."\n\nUnfortunately, there's some room for interpretation here as to what the\nconsequences are of having the render area set to exactly the\nframebuffer dimensions and having a scissor that is larger than the\nframebuffer. Given that GL and other APIs provide automatic clipping to\nthe framebuffer, it makes sense that applications would assume that\nVulkan does this as well. It costs us very little to play it safe and\njust clamp client-provided scissors to the framebuffer dimensions.\nFortunately, the user is required to provide us with at least one\nscissor so we don't need to handle the case where they don't.\n\nFixes: fb2a5ceb3264 "anv: Emit DRAWING_RECTANGLE once at driver..."\nReviewed-by: Kenneth Graunke <kenn...@whitecape.org>\n(cherry picked from commit 465e5a868cd58ca7c4ff7476e98231ffd4f3d2bf)
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev