aboutsummaryrefslogtreecommitdiff
path: root/demos/cube.c
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <courtney@LunarG.com>2015-02-11 14:13:34 -0700
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-02-17 10:20:49 -0700
commit1710d8d2cd8b73668c19bec9cad34e40b2aa68f8 (patch)
tree53c242eaa72124a61971db835b7a56e60568e78d /demos/cube.c
parent3ee56f121cce1c0d96fdc60566afa71db45413b0 (diff)
downloadusermoji-1710d8d2cd8b73668c19bec9cad34e40b2aa68f8.tar.xz
intel: Remove scissor enable and scissor count
bug #12925 header version: r29511 Remove separate scissor enable and scissor count. Scissor always enabled and must always provide scissor rect for every viewport.
Diffstat (limited to 'demos/cube.c')
-rw-r--r--demos/cube.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/demos/cube.c b/demos/cube.c
index 42a95709..1e961a78 100644
--- a/demos/cube.c
+++ b/demos/cube.c
@@ -1142,7 +1142,6 @@ static void demo_prepare_pipeline(struct demo *demo)
memset(&vp, 0, sizeof(vp));
vp.sType = XGL_STRUCTURE_TYPE_PIPELINE_VP_STATE_CREATE_INFO;
- vp.scissorEnable = XGL_FALSE;
memset(&ds, 0, sizeof(ds));
ds.sType = XGL_STRUCTURE_TYPE_PIPELINE_DS_STATE_CREATE_INFO;
@@ -1201,13 +1200,19 @@ static void demo_prepare_dynamic_states(struct demo *demo)
memset(&viewport_create, 0, sizeof(viewport_create));
viewport_create.sType = XGL_STRUCTURE_TYPE_DYNAMIC_VP_STATE_CREATE_INFO;
- viewport_create.viewportCount = 1;
+ viewport_create.viewportAndScissorCount = 1;
XGL_VIEWPORT viewport;
+ XGL_RECT scissor;
viewport.height = (float) demo->height;
viewport.width = (float) demo->width;
viewport.minDepth = (float) 0.0f;
viewport.maxDepth = (float) 1.0f;
+ scissor.extent.width = demo->width;
+ scissor.extent.height = demo->height;
+ scissor.offset.x = 0;
+ scissor.offset.y = 0;
viewport_create.pViewports = &viewport;
+ viewport_create.pScissors = &scissor;
memset(&raster, 0, sizeof(raster));
raster.sType = XGL_STRUCTURE_TYPE_DYNAMIC_RS_STATE_CREATE_INFO;